-
sfernandez
Site Admin
- Posts: 3183
- Joined:
Re: [Unity] Starting a storyboard after dynamic load
It was my fault, I was using the 1.1.12 version (yet not public) that exposes the UpdateLayout() function, necessary to correctly update ActualWidth and ActualHeight properties.
You will have to wait until next release, sorry for the inconvenience.
You will have to wait until next release, sorry for the inconvenience.
Re: [Unity] Starting a storyboard after dynamic load
Yes, I'm currently running 1.1.12 as well, on the RT trial, so I do see the UpdateLayout() function. It doesn't seem to be working for me though. At what point did you call UpdateLayout()?
-
sfernandez
Site Admin
- Posts: 3183
- Joined:
Re: [Unity] Starting a storyboard after dynamic load
In the LoadView() function, after view is connected to the container, I call the UpdateLayout over the container so anything below gets correctly measured and arranged:
This is working for me.
Code: Select all
public SimpleView LoadView()
{
var view = NoesisGUISystem.LoadXaml<SimpleView>("Assets/UI/Simple/SimpleView.xaml");
_contentContainer.SetContent(view);
_contentContainer.SetVisibility(Visibility.Visible);
_contentContainer.UpdateLayout();
return view;
}