I have just started with a new test Project and have not much knownledge about web developing but if I want a master page like structure, how would I do that in Xaml?
I was doing like this:
Code: Select all
<Grid Name="PageContent" >
<!-- Page here -->
</Grid>
Code: Select all
public void OpenPage(UserControl page)
{
PageContent.Children.Clear();
PageContent.Children.Add(page);
}
The problem is that the variable PageContent do not exist even when Grid has the name PageContent.
How should I do? Is there a better alternative to open a page in a "MasterPage" ?