![]() ![]() I'll head over to my Main Window and add a Button components to do this. Now I want to be able to open my pop-up window. Now we'll create a property binding on the text value, and bind it to my custom property. If I click the other Button, It opens that same pop-up, but you see Something else! As you can see it's really easy to pass values to the window and have Its behavior or appearance change based on those values. You'll notice that if I click the top Button here, it opens my pop-up and you can see the Hello World! text. I'll change it to Something else! At this point I should have everything I need to open my window and pass different parameters to it. And open up its Component Scripting window. Now I want to make another button that passes a different parameter. Now, I could pass a dynamic parameter here and bind something here.īut instead, I'm going to pass a hard-coded value. And if I click the parameter name? You'll notice that the custom properties auto-populated in the dropdown. Select my pop-up from the window drop down, and then I can click this checkbox here to be able to pass parameters to the window. I can open up the Component Scripting window, and I'll use an Open/Swap navigation action. I want to display this property in my pop-up. We want it to get its values from the opening action and don't want anything else to override it. If you're going to be passing value to this property, it's important that you don't bind it to anything. Once you have a custom property on your root container, you can see it in the Property Editor here. I'll give it the name body and change it to a String type. In order to do this, I can right click the root container, go to Customizers, and click Custom Properties I'll click the plus icon. The first thing I'll need to do is create a custom property on the root container of my pop-up. I have a pop-up window on my project that I want to pass a value to. Parameterize pop-up windows allow us to create a single window but change its behavior or appearance based on the supplied parameters when it's opened. In this lesson, we'll go over passing parameters to a pop-up window. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |