Page 2 of 2

Re: [Unity] Starting a storyboard after dynamic load

Posted: 10 Oct 2014, 20:29
by sfernandez
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.

Re: [Unity] Starting a storyboard after dynamic load

Posted: 10 Oct 2014, 22:18
by MrHayato
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()?

Re: [Unity] Starting a storyboard after dynamic load

Posted: 11 Oct 2014, 00:11
by sfernandez
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:
public SimpleView LoadView()
{
    var view = NoesisGUISystem.LoadXaml<SimpleView>("Assets/UI/Simple/SimpleView.xaml");
    _contentContainer.SetContent(view);
    _contentContainer.SetVisibility(Visibility.Visible);
    _contentContainer.UpdateLayout();
    return view;
}
This is working for me.