Ejemplo n.º 1
0
        private void onProcessClickMainDocking(object sender, RoutedEventArgs e)
        {
            //DockableContent activeContent = GetManager().ActiveContent as DockableContent;
            //DockingManager _docManager = (DockingManager)((MenuItem)e.OriginalSource).CommandParameter; ;
            DockingManager  _docManager   = (DockingManager)((MenuItem)e.Source).CommandParameter;;
            DockableContent activeContent = (DockableContent)((MenuItem)e.Source).DataContext;;

            activeContent.NVSSubDocking = null;
            activeContent.Manager       = _docManager;

            activeContent.Hide();
            activeContent.Show();
        }
Ejemplo n.º 2
0
 private void SetVisibilityOfMenuItems(DockableContent dc)
 {
     if (dc.Visibility == Visibility.Visible) // the value is set in ConvertBack of AvalonDockVisibilityConverter!!!
     {
         dc.Show();
     }
     else
     {
         dc.Hide();
     }
 }