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?
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.