Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
840
Restore Layout to initial/default settings?
posted

I know there's a SaveLayout and LoadLayout function, but I want to revert the Layout back to the way that it's defined in the xaml at the click of a button.

 

Possible?

  • 54937
    Verified Answer
    Offline posted

    You would call SaveLayout (likely the parameterless overload that returns a string) when the application first starts before the end user has a chance to make any changes and before you make any calls to LoadLayout. Then when you want to restore to that state you would call LoadLayout with that saved layout.