User avatar
sfernandez
Site Admin
Posts: 1935
Joined: 22 Dec 2011, 19:20

Re: [Unity] Starting a storyboard after dynamic load

10 Oct 2014, 20:29

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.
 
MrHayato
Topic Author
Posts: 36
Joined: 19 Sep 2014, 21:29

Re: [Unity] Starting a storyboard after dynamic load

10 Oct 2014, 22:18

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()?
 
User avatar
sfernandez
Site Admin
Posts: 1935
Joined: 22 Dec 2011, 19:20

Re: [Unity] Starting a storyboard after dynamic load

11 Oct 2014, 00:11

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.

Who is online

Users browsing this forum: No registered users and 5 guests