user interface - VisualStateManager applys in Visual Studio, but not in the app -


i've got view looks this:

http://www.imgbox.de/users/public/images/w3pituctow.png

as can see, it's standard design.

when click in visual studio @ 'snapped', looks this:

www.imgbox.de/users/public/images/8fw93piwbt.png

as can see, second grid "west" below left grid "ost".

the problem is, won't work when start app (it keeps standard) (don't irritated top bar...)

http://www.imgbox.de/users/public/images/c6aytknjjo.png

problem solved. has in code-behind:

    public mainpage()     {         this.initializecomponent();         window.current.sizechanged += current_sizechanged;       }      void current_sizechanged(object sender, windows.ui.core.windowsizechangedeventargs e)     {         visualstatemanager.gotostate(this, applicationview.value.tostring(), true);     } 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -