void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 19 "..\..\..\Shell\ShellViewMetro.xaml"
                ((Wide.Shell.ShellViewMetro)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing_1);

            #line default
            #line hidden
                return;

            case 2:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:
                this.WideStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 4:
                this.dockManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
                return;

            case 6:
                this.VerticalPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;

            case 7:
                this.HorizontalPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.maingrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.modeBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.beginBtn = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.dockmanager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
                return;

            case 5:
                this.manager = ((ElectricAnalysis.View.ResourceManager)(target));
                return;

            case 6:
                this.middlePanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;

            case 7:
                this.ShowPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPane)(target));
                return;

            case 8:
                this.msglist = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 9:
                this.msgbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.branchView = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 11:
                this.branchPanel = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.Panel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;

            case 3:
                this.Paneleft = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 4:
                this.Solution1 = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 5:
                this.PaneCenter = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 6:
                this.Solution2 = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 7:
                this.Solution3 = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 8:
                this.Button1 = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.PaneRight = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 10:
                this.Solution4 = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 11:
                this.Solution5 = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainWindow.xaml"
                ((HerbalAnalysis.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((HerbalAnalysis.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((HerbalAnalysis.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden
                return;

            case 2:

            #line 8 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewPqxProjCommand);

            #line default
            #line hidden
                return;

            case 3:

            #line 9 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenPqxProjCommand);

            #line default
            #line hidden
                return;

            case 4:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 5:
                this.menuItemFile = ((System.Windows.Controls.MenuItem)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.menuItemFile.MouseEnter += new System.Windows.Input.MouseEventHandler(this.menuItemFile_MouseEnter);

            #line default
            #line hidden
                return;

            case 6:
                this.menuItemNew = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 7:
                this.menuItemOpen = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.menuItemAdd = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 9:
                this.menuItemClose = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 10:
                this.menuItemRecentProject = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:
                this.menuItemExit = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 13:
                this.menuItemEdit = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.menuItemUndo = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.menuItemCut = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 16:
                this.menuItemCopy = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 17:
                this.menuItemPaste = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.menuItemDelete = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 19:
                this.menuItemView = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 20:
                this.menuItemProjResManager = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 21:
                this.menuItemProjAttrPage = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 22:
                this.menuItemTools = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 23:
                this.menuItemAbout = ((System.Windows.Controls.MenuItem)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.menuItemAbout.Click += new System.Windows.RoutedEventHandler(this.menuItemHelp_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.Panel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;

            case 25:
                this.RightAnchorableGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePaneGroup)(target));
                return;

            case 26:
                this.RightPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 27:
                this.NodeNameTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.NodeNameTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.NodeNameTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.WaveLengthStartTB = ((System.Windows.Controls.TextBox)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.WaveLengthStartTB.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.WaveLengthTB_Pasting));

            #line default
            #line hidden

            #line 80 "..\..\MainWindow.xaml"
                this.WaveLengthStartTB.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.WaveLengthTB_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 29:
                this.WaveLengthSpaceTB = ((System.Windows.Controls.TextBox)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.WaveLengthSpaceTB.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.WaveLengthTB_Pasting));

            #line default
            #line hidden

            #line 82 "..\..\MainWindow.xaml"
                this.WaveLengthSpaceTB.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.WaveLengthTB_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 30:
                this.AppendButton = ((System.Windows.Controls.Button)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.AppendButton.Click += new System.Windows.RoutedEventHandler(this.AppendButton_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.TipsTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.IsSortTimeCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 33:
                this.IsReverseCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 34:
                this.DirTreeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 35:
                this.LeftGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 36:
                this.RightGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 37:
                this.TopGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 38:
                this.BottomGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NewCommand);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 10 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.OpenCommand);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveCommand);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 22 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewProject_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 45 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleScripts);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 46 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleMaps);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 47 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleCustomers);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 48 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleNodes);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 49 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleLinks);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 50 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleServices);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 51 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleConnections);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 52 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToggleStartPage);
     
     #line default
     #line hidden
     return;
     case 13:
     this.dockingmanager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
     return;
     case 14:
     this.m_LayoutPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 19 "..\..\..\Shell\ShellViewMetro.xaml"
     ((Wide.Shell.ShellViewMetro)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing_1);
     
     #line default
     #line hidden
     return;
     case 2:
     this.mainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     this.WideStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 4:
     this.dockManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
     return;
     case 6:
     this.VerticalPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
     return;
     case 7:
     this.HorizontalPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.munMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 2:
     this.fileSave = ((System.Windows.Controls.MenuItem)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.fileSave.Click += new System.Windows.RoutedEventHandler(this.fileSave_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.fileLoad = ((System.Windows.Controls.MenuItem)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.fileLoad.Click += new System.Windows.RoutedEventHandler(this.fileLoad_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.programExit = ((System.Windows.Controls.MenuItem)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.programExit.Click += new System.Windows.RoutedEventHandler(this.programExit_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.miLeft = ((System.Windows.Controls.MenuItem)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.miLeft.Click += new System.Windows.RoutedEventHandler(this.imageLoad_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.miRight = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 7:
     this.miTop = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 8:
     this.miBottom = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 9:
     this.miAnchorPane = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 10:
     this.miAnchorVerticalPane = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 11:
     this.miDocumentPane = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 12:
     this.priorityPane = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 13:
     this.miAddAnchroable = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 14:
     this.miAddDocument = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 15:
     this.miOutPutWnd = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 16:
     this.miAutoHide = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 17:
     this.miGeneric = ((System.Windows.Controls.MenuItem)(target));
     
     #line 46 "..\..\MainWindow.xaml"
     this.miGeneric.Click += new System.Windows.RoutedEventHandler(this.themeGeneric_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.miAero = ((System.Windows.Controls.MenuItem)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.miAero.Click += new System.Windows.RoutedEventHandler(this.themeAero_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.miDark = ((System.Windows.Controls.MenuItem)(target));
     
     #line 48 "..\..\MainWindow.xaml"
     this.miDark.Click += new System.Windows.RoutedEventHandler(this.themeDark_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.miLight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 49 "..\..\MainWindow.xaml"
     this.miLight.Click += new System.Windows.RoutedEventHandler(this.themeLight_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.miMetro = ((System.Windows.Controls.MenuItem)(target));
     
     #line 50 "..\..\MainWindow.xaml"
     this.miMetro.Click += new System.Windows.RoutedEventHandler(this.themeMetro_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.miVS = ((System.Windows.Controls.MenuItem)(target));
     
     #line 51 "..\..\MainWindow.xaml"
     this.miVS.Click += new System.Windows.RoutedEventHandler(this.themeVS_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.DockManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
     return;
     case 24:
     this.Root = ((Xceed.Wpf.AvalonDock.Layout.LayoutRoot)(target));
     return;
     case 25:
     this.Panel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
     return;
     case 26:
     this.LeftAnchorableGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePaneGroup)(target));
     return;
     case 27:
     this.LeftPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
     return;
     case 28:
     this.Solution = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
     return;
     case 29:
     this.mToolBox = ((System.Windows.Controls.ListBox)(target));
     return;
     case 30:
     this.TemperaPanel = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 31:
     this.MonitorControl = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 32:
     this.MotionSensor = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 33:
     this.WindowMagnet = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 34:
     this.DocumentGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPaneGroup)(target));
     return;
     case 35:
     this.DocumentPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPane)(target));
     return;
     case 36:
     this.mEidtor = ((System.Windows.Controls.Canvas)(target));
     
     #line 83 "..\..\MainWindow.xaml"
     this.mEidtor.DragOver += new System.Windows.DragEventHandler(this.OnDragOver);
     
     #line default
     #line hidden
     
     #line 83 "..\..\MainWindow.xaml"
     this.mEidtor.Drop += new System.Windows.DragEventHandler(this.OnDrop);
     
     #line default
     #line hidden
     return;
     case 37:
     this.backgroundImage = ((System.Windows.Media.ImageBrush)(target));
     return;
     case 38:
     this.RightAnchorableGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePaneGroup)(target));
     return;
     case 39:
     this.RightPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
     return;
     case 40:
     this.mEditSize = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 41:
     this.mPosition = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 42:
     this.LeftGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
     return;
     case 43:
     this.RightGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
     return;
     case 44:
     this.TopGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
     return;
     case 45:
     this.BottomGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\MainWindow.xaml"
                ((SpectrumScanner.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.mainDockingManager = ((Xceed.Wpf.AvalonDock.DockingManager)(target));
                return;

            case 3:
                this.layoutRoot = ((Xceed.Wpf.AvalonDock.Layout.LayoutRoot)(target));
                return;

            case 4:
                this.layoutPanel = ((Xceed.Wpf.AvalonDock.Layout.LayoutPanel)(target));
                return;

            case 5:
                this.layoutAnchorableGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePaneGroup)(target));
                return;

            case 6:
                this.leftPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 7:
                this.taskList = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable)(target));
                return;

            case 8:

            #line 67 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBoxItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListBoxItem_Selected_1);

            #line default
            #line hidden
                return;

            case 9:

            #line 68 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBoxItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListBoxItem_Selected_2);

            #line default
            #line hidden
                return;

            case 10:

            #line 69 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBoxItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListBoxItem_Selected_3);

            #line default
            #line hidden
                return;

            case 11:

            #line 70 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListBoxItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListBoxItem_Selected_4);

            #line default
            #line hidden
                return;

            case 12:
                this.DocumentGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPaneGroup)(target));
                return;

            case 13:
                this.DocumentPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocumentPane)(target));
                return;

            case 14:
                this.layoutDocument = ((Xceed.Wpf.AvalonDock.Layout.LayoutDocument)(target));
                return;

            case 15:
                this.myGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 17:
                this.border2 = ((System.Windows.Controls.Border)(target));
                return;

            case 18:
                this.border3 = ((System.Windows.Controls.Border)(target));
                return;

            case 19:
                this.border4 = ((System.Windows.Controls.Border)(target));
                return;

            case 20:
                this.RightAnchorableGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePaneGroup)(target));
                return;

            case 21:
                this.RightPane = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorablePane)(target));
                return;

            case 22:
                this.leftGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 23:
                this.rightGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 24:
                this.topGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;

            case 25:
                this.bottomGroup = ((Xceed.Wpf.AvalonDock.Layout.LayoutAnchorGroup)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #9
0
        public void ToggleAutoHide()
        {
            #region Anchorable is already auto hidden
            if (IsAutoHidden)
            {
                var parentGroup       = Parent as LayoutAnchorGroup;
                var parentSide        = parentGroup.Parent as LayoutAnchorSide;
                var previousContainer = (( ILayoutPreviousContainer )parentGroup).PreviousContainer as LayoutAnchorablePane;

                if (previousContainer == null)
                {
                    AnchorSide side = (parentGroup.Parent as LayoutAnchorSide).Side;
                    switch (side)
                    {
                    case AnchorSide.Right:
                        if (parentGroup.Root.RootPanel.Orientation == Orientation.Horizontal)
                        {
                            previousContainer = new LayoutAnchorablePane();
                            previousContainer.DockMinWidth = this.AutoHideMinWidth;
                            parentGroup.Root.RootPanel.Children.Add(previousContainer);
                        }
                        else
                        {
                            previousContainer = new LayoutAnchorablePane();
                            LayoutPanel panel = new LayoutPanel()
                            {
                                Orientation = Orientation.Horizontal
                            };
                            LayoutRoot  root         = parentGroup.Root as LayoutRoot;
                            LayoutPanel oldRootPanel = parentGroup.Root.RootPanel as LayoutPanel;
                            root.RootPanel = panel;
                            panel.Children.Add(oldRootPanel);
                            panel.Children.Add(previousContainer);
                        }
                        break;

                    case AnchorSide.Left:
                        if (parentGroup.Root.RootPanel.Orientation == Orientation.Horizontal)
                        {
                            previousContainer = new LayoutAnchorablePane();
                            previousContainer.DockMinWidth = this.AutoHideMinWidth;
                            parentGroup.Root.RootPanel.Children.Insert(0, previousContainer);
                        }
                        else
                        {
                            previousContainer = new LayoutAnchorablePane();
                            LayoutPanel panel = new LayoutPanel()
                            {
                                Orientation = Orientation.Horizontal
                            };
                            LayoutRoot  root         = parentGroup.Root as LayoutRoot;
                            LayoutPanel oldRootPanel = parentGroup.Root.RootPanel as LayoutPanel;
                            root.RootPanel = panel;
                            panel.Children.Add(previousContainer);
                            panel.Children.Add(oldRootPanel);
                        }
                        break;

                    case AnchorSide.Top:
                        if (parentGroup.Root.RootPanel.Orientation == Orientation.Vertical)
                        {
                            previousContainer = new LayoutAnchorablePane();
                            previousContainer.DockMinHeight = this.AutoHideMinHeight;
                            parentGroup.Root.RootPanel.Children.Insert(0, previousContainer);
                        }
                        else
                        {
                            previousContainer = new LayoutAnchorablePane();
                            LayoutPanel panel = new LayoutPanel()
                            {
                                Orientation = Orientation.Vertical
                            };
                            LayoutRoot  root         = parentGroup.Root as LayoutRoot;
                            LayoutPanel oldRootPanel = parentGroup.Root.RootPanel as LayoutPanel;
                            root.RootPanel = panel;
                            panel.Children.Add(previousContainer);
                            panel.Children.Add(oldRootPanel);
                        }
                        break;

                    case AnchorSide.Bottom:
                        if (parentGroup.Root.RootPanel.Orientation == Orientation.Vertical)
                        {
                            previousContainer = new LayoutAnchorablePane();
                            previousContainer.DockMinHeight = this.AutoHideMinHeight;
                            parentGroup.Root.RootPanel.Children.Add(previousContainer);
                        }
                        else
                        {
                            previousContainer = new LayoutAnchorablePane();
                            LayoutPanel panel = new LayoutPanel()
                            {
                                Orientation = Orientation.Vertical
                            };
                            LayoutRoot  root         = parentGroup.Root as LayoutRoot;
                            LayoutPanel oldRootPanel = parentGroup.Root.RootPanel as LayoutPanel;
                            root.RootPanel = panel;
                            panel.Children.Add(oldRootPanel);
                            panel.Children.Add(previousContainer);
                        }
                        break;
                    }
                }
                else
                {
                    //I'm about to remove parentGroup, redirect any content (ie hidden contents) that point to it
                    //to previousContainer
                    LayoutRoot root = parentGroup.Root as LayoutRoot;
                    foreach (var cnt in root.Descendents().OfType <ILayoutPreviousContainer>().Where(c => c.PreviousContainer == parentGroup))
                    {
                        cnt.PreviousContainer = previousContainer;
                    }
                }

                foreach (var anchorableToToggle in parentGroup.Children.ToArray())
                {
                    previousContainer.Children.Add(anchorableToToggle);
                }

                parentSide.Children.Remove(parentGroup);

                var parent = previousContainer.Parent as LayoutGroupBase;
                while ((parent != null))
                {
                    if (parent is LayoutGroup <ILayoutPanelElement> )
                    {
                        ((LayoutGroup <ILayoutPanelElement>)parent).ComputeVisibility();
                    }
                    parent = parent.Parent as LayoutGroupBase;
                }
            }
            #endregion

            #region Anchorable is docked
            else if (Parent is LayoutAnchorablePane)
            {
                var root       = Root;
                var parentPane = Parent as LayoutAnchorablePane;

                var newAnchorGroup = new LayoutAnchorGroup();

                (( ILayoutPreviousContainer )newAnchorGroup).PreviousContainer = parentPane;

                foreach (var anchorableToImport in parentPane.Children.ToArray())
                {
                    newAnchorGroup.Children.Add(anchorableToImport);
                }

                //detect anchor side for the pane
                var anchorSide = parentPane.GetSide();

                switch (anchorSide)
                {
                case AnchorSide.Right:
                    if (root.RightSide != null)
                    {
                        root.RightSide.Children.Add(newAnchorGroup);
                    }
                    break;

                case AnchorSide.Left:
                    if (root.LeftSide != null)
                    {
                        root.LeftSide.Children.Add(newAnchorGroup);
                    }
                    break;

                case AnchorSide.Top:
                    if (root.TopSide != null)
                    {
                        root.TopSide.Children.Add(newAnchorGroup);
                    }
                    break;

                case AnchorSide.Bottom:
                    if (root.BottomSide != null)
                    {
                        root.BottomSide.Children.Add(newAnchorGroup);
                    }
                    break;
                }
            }
            #endregion
        }
Exemple #10
0
        protected override void InternalDock()
        {
            var root = Root as LayoutRoot;
            LayoutAnchorablePane anchorablePane = null;

            if (root.ActiveContent != null &&
                root.ActiveContent != this)
            {
                //look for active content parent pane
                anchorablePane = root.ActiveContent.Parent as LayoutAnchorablePane;
            }

            if (anchorablePane == null)
            {
                //look for a pane on the right side
                anchorablePane = root.Descendents().OfType <LayoutAnchorablePane>().Where(pane => !pane.IsHostedInFloatingWindow && pane.GetSide() == AnchorSide.Right).FirstOrDefault();
            }

            if (anchorablePane == null)
            {
                //look for an available pane
                anchorablePane = root.Descendents().OfType <LayoutAnchorablePane>().FirstOrDefault();
            }


            bool added = false;

            if (root.Manager.LayoutUpdateStrategy != null)
            {
                added = root.Manager.LayoutUpdateStrategy.BeforeInsertAnchorable(root, this, anchorablePane);
            }

            if (!added)
            {
                if (anchorablePane == null)
                {
                    var mainLayoutPanel = new LayoutPanel()
                    {
                        Orientation = Orientation.Horizontal
                    };
                    if (root.RootPanel != null)
                    {
                        mainLayoutPanel.Children.Add(root.RootPanel);
                    }

                    root.RootPanel = mainLayoutPanel;
                    anchorablePane = new LayoutAnchorablePane()
                    {
                        DockWidth = new GridLength(200.0, GridUnitType.Pixel)
                    };
                    mainLayoutPanel.Children.Add(anchorablePane);
                }

                anchorablePane.Children.Add(this);
                added = true;
            }

            if (root.Manager.LayoutUpdateStrategy != null)
            {
                root.Manager.LayoutUpdateStrategy.AfterInsertAnchorable(root, this);
            }

            base.InternalDock();
        }