public void ShowMasterView()
{
PreviewItem = null;
if (isInOnePaneMode)
{
//EvaluateLayout();
lock (currentState)
{
VisualStateManager.GoToState(this, OnePaneMasterVisualState.Name, true);
if (currentState != OnePaneMasterVisualState.Name)
{
currentState = OnePaneMasterVisualState.Name;
if (MasterViewShown != null)
MasterViewShown(this, new MasterDetailViewControlViewShownEventArgs() { RequestedBy = ViewShownRequestedByType.User, ViewShown = currentState });
}
}
}
else
{
currentState = TwoPaneVisualState.Name;
if (MasterViewShown != null)
MasterViewShown(this, new MasterDetailViewControlViewShownEventArgs() { RequestedBy = ViewShownRequestedByType.User, ViewShown = currentState });
}
if (BackButtonVisibilityHinted != null)
BackButtonVisibilityHinted(this, new MasterDetailViewControlBackButtonVisibilityHintedEventArgs(false));
}