private void NavigatedTo(NavigationEventArgs arg)
        {
            if (Program.PreviewerDetached)
            {
                switch (arg.NavigationMode)
                {
                case NavigationMode.New:
                    (_parent, _profile) = ((NavigationDialogHost, TempProfile))arg.Parameter;
                    _contentManager     = _parent.ContentManager;
                    break;

                case NavigationMode.Back:
                    _parent.GoBack();
                    break;
                }

                DataContext = this;
            }
        }
Ejemplo n.º 2
0
 private void CloseButton_Click(object sender, RoutedEventArgs e)
 {
     _parent?.GoBack();
 }