Exemple #1
0
 private void ToolContainer_ChildrenTreeChanged(object sender, ChildrenTreeChangedEventArgs e)
 {
     if (__main_wnd_data_model != null && __target_manager_data_model != null)
     {
         __main_wnd_data_model.IsDirty = true;
     }
 }
 // Code taken from VisualPawn Editer (Not published yet)
 private void DockingPaneGroup_ChildrenTreeChanged(object sender, ChildrenTreeChangedEventArgs e)
 {
     // if the active LayoutDocumentPane gets closed
     // 1. it will not be in the LayoutDocumentPaneGroup.
     // 2. editor that get added to it will not be shown in the client.
     // Solution: Set the active LayoutDocumentPane to the first LayoutDocumentPaneGroup avilable child.
     if (e.Change == ChildrenTreeChange.DirectChildrenChanged &&
         !DockingPaneGroup.Children.Contains(DockingPane) &&
         DockingPaneGroup.Children[0] is LayoutDocumentPane pane)
     {
         DockingPane = pane;
     }
 }
 void _rootPanel_ChildrenTreeChanged(object sender, ChildrenTreeChangedEventArgs e)
 {
     RaisePropertyChanged("IsSinglePane");
     RaisePropertyChanged("SinglePane");
 }