Kimono.Controls.MasterDetailViewControl.ShowMasterView C# (CSharp) Method

ShowMasterView() public method

public ShowMasterView ( ) : void
return void
        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));
        }