mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

Unload XAML

19 Jun 2023, 02:11

It seems like if I add a an unreal view once and then modify it causing the XAML state to change, even if I later Remove from Parent and create a new instance of that view, the XAML state is persisted between instances.

My exact scenario:

1. Add a view that contains XAML that reacts to a change in property with a BeginStoryboard
2. When the storyboard ends, remove the view (Remove from Parent in Unreal Engine)
3. Repeat step number 1, this time the control that was reacting to a change persisted the state at the end of the Storyboard.

I guess this has to do with XAML being loaded, but never Unloaded.

Is there something I can do besides manually resetting the state in XAML?
 
mshvern23
Topic Author
Posts: 35
Joined: 22 May 2023, 02:00

Re: Unload XAML

19 Jun 2023, 02:23

I drew conclusions way too early on this. This is not how it works. I was just not resetting the Model all the way.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Unload XAML

20 Jun 2023, 18:58

Glad you figured it out.

Who is online

Users browsing this forum: No registered users and 10 guests