public Pane(DockManager dockManager, DockableContent content) { _dockManager = dockManager; if (content != null) Add(content); }
public OverlayWindow(DockManager owner) { //if (!Application.Current.Resources.Contains("DockDownButtonSyle")) //{ // using (FileStream fs = new FileStream(@"generic.xaml", FileMode.Open, FileAccess.Read)) // { // ResourceDictionary resources = (ResourceDictionary)XamlReader.Load(fs); // Application.Current.Resources.Add("DockDownButtonSyle", resources["DockDownButtonSyle"]); // } //} InitializeComponent(); _owner = owner; DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockBottom, this)); DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockTop, this)); DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockLeft, this)); DockManager.DragPaneServices.Register(new OverlayWindowDockingButton(btnDockRight, this)); owdBottom = new OverlayWindowDockingButton(btnDockPaneBottom, this, false); owdTop = new OverlayWindowDockingButton(btnDockPaneTop, this, false); owdLeft = new OverlayWindowDockingButton(btnDockPaneLeft, this, false); owdRight = new OverlayWindowDockingButton(btnDockPaneRight, this, false); owdInto = new OverlayWindowDockingButton(btnDockPaneInto, this, false); DockManager.DragPaneServices.Register(owdBottom); DockManager.DragPaneServices.Register(owdTop); DockManager.DragPaneServices.Register(owdLeft); DockManager.DragPaneServices.Register(owdRight); DockManager.DragPaneServices.Register(owdInto); //gridPaneRelativeDockingOptions.Width = 88; //gridPaneRelativeDockingOptions.Height = 88; }
public OverlayDockablePane(DockManager dockManager, DockableContent content, Dock initialDock) : base(dockManager, initialDock) { btnAutoHide.LayoutTransform = new RotateTransform(90); ReferencedPane = content.ContainerPane as DockablePane; ReferencedContent = content; Add(ReferencedContent); Show(ReferencedContent); ReferencedContent.SetContainerPane(ReferencedPane); _state = PaneState.AutoHide; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\MainWindow.xaml" ((DockingLibraryDemo.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((DockingLibraryDemo.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.OnClosing); #line default #line hidden return; case 2: #line 10 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewDocument); #line default #line hidden return; case 3: #line 11 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitApplication); #line default #line hidden return; case 4: #line 23 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: this.dockManager = ((DockingLibrary.DockManager)(target)); return; } this._contentLoaded = true; }
public override void Remove(DockableContent content) { System.Diagnostics.Debug.Assert(content != null); if (content == null) { return; } RemoveItem(content); Documents.Remove(content); DockManager.Remove(content); base.Remove(content); }
protected virtual void DragContent(DockableContent contentToDrag, Point startDragPoint, Point offset) { Remove(contentToDrag); DockablePane pane = new DockablePane(DockManager); //pane = new DockablePane(); //pane.DockManager = DockManager; pane.Add(contentToDrag); pane.Show(); DockManager.Add(pane); //DockManager.Add(contentToDrag); FloatingWindow wnd = new FloatingWindow(pane); pane.ChangeState(PaneState.DockableWindow); DockManager.Drag(wnd, startDragPoint, offset); }
public virtual void Deserialize(DockManager managerToAttach, XmlNode node, GetContentFromTypeString getObjectHandler) { _dockManager = managerToAttach; PaneWidth = double.Parse(node.Attributes["Width"].Value); PaneHeight = double.Parse(node.Attributes["Height"].Value); foreach (XmlNode nodeDockableContent in node.ChildNodes) { DockableContent content = getObjectHandler(nodeDockableContent.Name); Add(content); Show(content); } DockManager.DragPaneServices.Register(this); }
/// <summary> /// Show this content /// </summary> /// <remarks>Show this content in a dockable pane. If no pane was previuosly created, it creates a new one with passed initial dock. </remarks> public void Show(Dock dock) { if (ContainerPane == null) { _containerPane = new DockablePane(DockManager, dock); //_containerPane.DockManager = DockManager; _containerPane.Add(this); _containerPane.Show(); //DockManager.Add(this); DockManager.Add(_containerPane as DockablePane); } else { ContainerPane.Show(this); ContainerPane.Show(); } }
/// <summary> /// Dock this pane to a destination pane border /// </summary> /// <param name="destinationPane"></param> /// <param name="relativeDock"></param> internal void MoveTo(Pane destinationPane, Dock relativeDock) { DockablePane dockableDestPane = destinationPane as DockablePane; if (dockableDestPane != null) { ChangeDock(dockableDestPane.Dock); } else { ChangeDock(relativeDock); } DockManager.MoveTo(this, destinationPane, relativeDock); ChangeState(PaneState.Docked); //Show(); //ChangeState(PaneState.Docked); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockManager = ((DockingLibrary.DockManager)(target)); return; case 2: this.GridMenu = ((System.Windows.Controls.Grid)(target)); return; case 3: this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target)); return; case 4: this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
public override void Deserialize(DockManager managerToAttach, XmlNode node, GetContentFromTypeString getObjectHandler) { base.Deserialize(managerToAttach, node, getObjectHandler); _dock = (Dock)Enum.Parse(typeof(Dock), node.Attributes["Dock"].Value); _state = (PaneState)Enum.Parse(typeof(PaneState), node.Attributes["State"].Value); _lastState = (PaneState)Enum.Parse(typeof(PaneState), node.Attributes["LastState"].Value); ptFloatingWindow = (Point)System.ComponentModel.TypeDescriptor.GetConverter(typeof(Point)).ConvertFromInvariantString(node.Attributes["ptFloatingWindow"].Value); sizeFloatingWindow = (Size)System.ComponentModel.TypeDescriptor.GetConverter(typeof(Size)).ConvertFromInvariantString(node.Attributes["sizeFloatingWindow"].Value); if (State == PaneState.FloatingWindow) { FloatingWindow(); } else if (State == PaneState.DockableWindow) { DockableWindow(); } DockManager.AttachPaneEvents(this); }
internal void AttachDockManager(DockManager dockManager) { _docsPane = new DocumentsPane(dockManager); _rootGroup = new DockablePaneGroup(DocumentsPane); ArrangeLayout(); }
public DocumentsPane(DockManager dockManager) : base(dockManager) { InitializeComponent(); tbcDocuments.SelectionChanged += new SelectionChangedEventHandler(tbcDocuments_SelectionChanged); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.ContextMenu_MainApplication = ((System.Windows.Controls.ContextMenu)(target)); return; case 3: #line 13 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeBackGround_Click); #line default #line hidden return; case 4: #line 14 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeBackAuto); #line default #line hidden return; case 5: this.MainAppMenu = ((System.Windows.Controls.Menu)(target)); return; case 6: #line 29 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.MenuItem_GotFocus); #line default #line hidden return; case 7: #line 34 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_SIDSearch); #line default #line hidden return; case 8: #line 36 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_SimpleSearch); #line default #line hidden return; case 9: #line 38 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_AdvancedSearch); #line default #line hidden return; case 10: #line 44 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_SIDSearch); #line default #line hidden return; case 11: #line 46 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_SimpleSearch); #line default #line hidden return; case 12: #line 48 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_AdvancedSearch); #line default #line hidden return; case 13: #line 54 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SIDSearch); #line default #line hidden return; case 14: #line 56 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SSimpleSearch); #line default #line hidden return; case 15: #line 58 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SAdvancedSearch); #line default #line hidden return; case 16: #line 64 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SIDSearch); #line default #line hidden return; case 17: #line 66 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SSimpleSearch); #line default #line hidden return; case 18: #line 68 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SAdvancedSearch); #line default #line hidden return; case 19: #line 83 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FIDSearch); #line default #line hidden return; case 20: #line 85 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FSimpleSearch); #line default #line hidden return; case 21: #line 87 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FAdvancedSearch); #line default #line hidden return; case 22: #line 93 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FIDSearch); #line default #line hidden return; case 23: #line 95 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FSimpleSearch); #line default #line hidden return; case 24: #line 97 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FAdvancedSearch); #line default #line hidden return; case 25: #line 103 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FIDSearch); #line default #line hidden return; case 26: #line 105 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FSimpleSearch); #line default #line hidden return; case 27: #line 107 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FAdvancedSearch); #line default #line hidden return; case 28: #line 113 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FIDSearch); #line default #line hidden return; case 29: #line 115 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FSimpleSearch); #line default #line hidden return; case 30: #line 117 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FAdvancedSearch); #line default #line hidden return; case 31: #line 123 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FIDSearch); #line default #line hidden return; case 32: #line 125 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FSimpleSearch); #line default #line hidden return; case 33: #line 127 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FAdvancedSearch); #line default #line hidden return; case 34: this.Apa_M_S = ((System.Windows.Controls.MenuItem)(target)); #line 138 "..\..\Window1.xaml" this.Apa_M_S.Click += new System.Windows.RoutedEventHandler(this.Apa_M_S_Click); #line default #line hidden return; case 35: this.Apa_E_S = ((System.Windows.Controls.MenuItem)(target)); #line 143 "..\..\Window1.xaml" this.Apa_E_S.Click += new System.Windows.RoutedEventHandler(this.Apa_E_S_Click); #line default #line hidden return; case 36: this.Magh_S = ((System.Windows.Controls.MenuItem)(target)); #line 148 "..\..\Window1.xaml" this.Magh_S.Click += new System.Windows.RoutedEventHandler(this.Magh_S_Click); #line default #line hidden return; case 37: this.Majmooe_S = ((System.Windows.Controls.MenuItem)(target)); #line 153 "..\..\Window1.xaml" this.Majmooe_S.Click += new System.Windows.RoutedEventHandler(this.Majmooe_S_Click); #line default #line hidden return; case 38: this.Apa_M_F = ((System.Windows.Controls.MenuItem)(target)); #line 167 "..\..\Window1.xaml" this.Apa_M_F.Click += new System.Windows.RoutedEventHandler(this.Apa_M_F_Click); #line default #line hidden return; case 39: this.Apa_E_F = ((System.Windows.Controls.MenuItem)(target)); #line 172 "..\..\Window1.xaml" this.Apa_E_F.Click += new System.Windows.RoutedEventHandler(this.Apa_E_F_Click); #line default #line hidden return; case 40: this.Magh_F = ((System.Windows.Controls.MenuItem)(target)); #line 177 "..\..\Window1.xaml" this.Magh_F.Click += new System.Windows.RoutedEventHandler(this.Magh_F_Click); #line default #line hidden return; case 41: this.Majmooe_F = ((System.Windows.Controls.MenuItem)(target)); #line 182 "..\..\Window1.xaml" this.Majmooe_F.Click += new System.Windows.RoutedEventHandler(this.Majmooe_F_Click); #line default #line hidden return; case 42: this.BaghVilla_F = ((System.Windows.Controls.MenuItem)(target)); #line 187 "..\..\Window1.xaml" this.BaghVilla_F.Click += new System.Windows.RoutedEventHandler(this.BaghVilla_F_Click); #line default #line hidden return; case 43: #line 201 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Support_Db); #line default #line hidden return; case 44: #line 215 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Phone_Book); #line default #line hidden return; case 45: this.Config_Menu = ((System.Windows.Controls.MenuItem)(target)); return; case 46: this.Manage_Users_MenuItem = ((System.Windows.Controls.MenuItem)(target)); #line 229 "..\..\Window1.xaml" this.Manage_Users_MenuItem.Click += new System.Windows.RoutedEventHandler(this.Manage_Users); #line default #line hidden return; case 47: #line 230 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Login_Prog); #line default #line hidden return; case 48: #line 231 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Price_Config); #line default #line hidden return; case 49: #line 232 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Wnd_Config); #line default #line hidden return; case 50: this.Help_Menu = ((System.Windows.Controls.MenuItem)(target)); return; case 51: this.Help_Menu_Item = ((System.Windows.Controls.MenuItem)(target)); #line 242 "..\..\Window1.xaml" this.Help_Menu_Item.Click += new System.Windows.RoutedEventHandler(this.Help_Menu_Item_Click); #line default #line hidden return; case 52: #line 252 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Prog); #line default #line hidden return; case 53: #line 266 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Prog); #line default #line hidden return; case 54: this.cb1 = ((System.Windows.Controls.CheckBox)(target)); return; case 55: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 56: this.tb1 = ((System.Windows.Controls.TextBlock)(target)); return; case 57: this.dockManager1 = ((System.Windows.Controls.DockPanel)(target)); return; case 58: this.dockManager = ((DockingLibrary.DockManager)(target)); return; case 59: this.image2 = ((System.Windows.Controls.Image)(target)); return; case 60: this.image3 = ((System.Windows.Controls.Image)(target)); return; case 61: this.dockManager2 = ((System.Windows.Controls.DockPanel)(target)); return; case 62: this.dockManagerMusic = ((DockingLibrary.DockManager)(target)); return; case 63: this.expander1 = ((System.Windows.Controls.Expander)(target)); return; case 64: this.InsertPermLbl = ((System.Windows.Controls.Label)(target)); return; case 65: this.SearchPermLbl = ((System.Windows.Controls.Label)(target)); return; case 66: this.DeletePermLbl = ((System.Windows.Controls.Label)(target)); return; case 67: this.EditPermLbl = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
public DockablePane(DockManager dockManager, Dock initialDock) : base(dockManager) { _dock = initialDock; InitializeComponent(); //this.GotFocus += new RoutedEventHandler(item_GotFocus); }
public override void Deserialize(DockManager managerToAttach, XmlNode node, GetContentFromTypeString getObjectHandler) { base.Deserialize(managerToAttach, node, getObjectHandler); _dock = (Dock)Enum.Parse(typeof(Dock), node.Attributes["Dock"].Value); _state = (PaneState)Enum.Parse(typeof(PaneState), node.Attributes["State"].Value); _lastState = (PaneState)Enum.Parse(typeof(PaneState), node.Attributes["LastState"].Value); ptFloatingWindow = (Point)System.ComponentModel.TypeDescriptor.GetConverter(typeof(Point)).ConvertFromInvariantString(node.Attributes["ptFloatingWindow"].Value); sizeFloatingWindow = (Size)System.ComponentModel.TypeDescriptor.GetConverter(typeof(Size)).ConvertFromInvariantString(node.Attributes["sizeFloatingWindow"].Value); if (State == PaneState.FloatingWindow) FloatingWindow(); else if (State == PaneState.DockableWindow) DockableWindow(); DockManager.AttachPaneEvents(this); }
public DocumentContent(DockManager manager) : base(manager) { }
public DocumentsPane(DockManager dockManager) : base(dockManager) { InitializeComponent(); }
public DragPaneServices(DockManager owner) { _owner = owner; }
public DockablePane(DockManager dockManager) : this(dockManager, Dock.Right) { }
public DockableContent(DockManager manager) : base(manager) { }
public ManagedContent(DockManager manager) { DockManager = manager; }
public override void Show() { DockManager.AddDocument(this); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden #line 10 "..\..\Window1.xaml" ((NeginProject.Window1)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.ContextMenu_MainApplication = ((System.Windows.Controls.ContextMenu)(target)); return; case 3: #line 13 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeBackGround_Click); #line default #line hidden return; case 4: #line 14 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.changeBackAuto); #line default #line hidden return; case 5: this.MainAppMenu = ((System.Windows.Controls.Menu)(target)); return; case 6: #line 29 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.MenuItem_GotFocus); #line default #line hidden return; case 7: #line 34 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_SIDSearch); #line default #line hidden return; case 8: #line 36 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_SimpleSearch); #line default #line hidden return; case 9: #line 38 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_AdvancedSearch); #line default #line hidden return; case 10: #line 44 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_SIDSearch); #line default #line hidden return; case 11: #line 46 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_SimpleSearch); #line default #line hidden return; case 12: #line 48 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_AdvancedSearch); #line default #line hidden return; case 13: #line 54 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SIDSearch); #line default #line hidden return; case 14: #line 56 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SSimpleSearch); #line default #line hidden return; case 15: #line 58 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_SAdvancedSearch); #line default #line hidden return; case 16: #line 64 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SIDSearch); #line default #line hidden return; case 17: #line 66 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SSimpleSearch); #line default #line hidden return; case 18: #line 68 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_SAdvancedSearch); #line default #line hidden return; case 19: #line 83 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FIDSearch); #line default #line hidden return; case 20: #line 85 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FSimpleSearch); #line default #line hidden return; case 21: #line 87 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_M_FAdvancedSearch); #line default #line hidden return; case 22: #line 93 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FIDSearch); #line default #line hidden return; case 23: #line 95 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FSimpleSearch); #line default #line hidden return; case 24: #line 97 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Apa_E_FAdvancedSearch); #line default #line hidden return; case 25: #line 103 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FIDSearch); #line default #line hidden return; case 26: #line 105 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FSimpleSearch); #line default #line hidden return; case 27: #line 107 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Magh_FAdvancedSearch); #line default #line hidden return; case 28: #line 113 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FIDSearch); #line default #line hidden return; case 29: #line 115 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FSimpleSearch); #line default #line hidden return; case 30: #line 117 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.House_FAdvancedSearch); #line default #line hidden return; case 31: #line 123 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FIDSearch); #line default #line hidden return; case 32: #line 125 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FSimpleSearch); #line default #line hidden return; case 33: #line 127 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Bagh_FAdvancedSearch); #line default #line hidden return; case 34: this.Apa_M_S = ((System.Windows.Controls.MenuItem)(target)); #line 138 "..\..\Window1.xaml" this.Apa_M_S.Click += new System.Windows.RoutedEventHandler(this.Apa_M_S_Click); #line default #line hidden return; case 35: this.Apa_E_S = ((System.Windows.Controls.MenuItem)(target)); #line 143 "..\..\Window1.xaml" this.Apa_E_S.Click += new System.Windows.RoutedEventHandler(this.Apa_E_S_Click); #line default #line hidden return; case 36: this.Magh_S = ((System.Windows.Controls.MenuItem)(target)); #line 148 "..\..\Window1.xaml" this.Magh_S.Click += new System.Windows.RoutedEventHandler(this.Magh_S_Click); #line default #line hidden return; case 37: this.Majmooe_S = ((System.Windows.Controls.MenuItem)(target)); #line 153 "..\..\Window1.xaml" this.Majmooe_S.Click += new System.Windows.RoutedEventHandler(this.Majmooe_S_Click); #line default #line hidden return; case 38: this.Apa_M_F = ((System.Windows.Controls.MenuItem)(target)); #line 167 "..\..\Window1.xaml" this.Apa_M_F.Click += new System.Windows.RoutedEventHandler(this.Apa_M_F_Click); #line default #line hidden return; case 39: this.Apa_E_F = ((System.Windows.Controls.MenuItem)(target)); #line 172 "..\..\Window1.xaml" this.Apa_E_F.Click += new System.Windows.RoutedEventHandler(this.Apa_E_F_Click); #line default #line hidden return; case 40: this.Magh_F = ((System.Windows.Controls.MenuItem)(target)); #line 177 "..\..\Window1.xaml" this.Magh_F.Click += new System.Windows.RoutedEventHandler(this.Magh_F_Click); #line default #line hidden return; case 41: this.Majmooe_F = ((System.Windows.Controls.MenuItem)(target)); #line 182 "..\..\Window1.xaml" this.Majmooe_F.Click += new System.Windows.RoutedEventHandler(this.Majmooe_F_Click); #line default #line hidden return; case 42: this.BaghVilla_F = ((System.Windows.Controls.MenuItem)(target)); #line 187 "..\..\Window1.xaml" this.BaghVilla_F.Click += new System.Windows.RoutedEventHandler(this.BaghVilla_F_Click); #line default #line hidden return; case 43: #line 201 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Support_Db); #line default #line hidden return; case 44: #line 215 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Login_Prog); #line default #line hidden return; case 45: #line 225 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Prog); #line default #line hidden return; case 46: #line 235 "..\..\Window1.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Prog); #line default #line hidden return; case 47: this.cb1 = ((System.Windows.Controls.CheckBox)(target)); return; case 48: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 49: this.tb1 = ((System.Windows.Controls.TextBlock)(target)); return; case 50: this.dockManager = ((DockingLibrary.DockManager)(target)); return; case 51: this.image2 = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
protected override void OnDockManagerChanged(DockManager oldDockManager, DockManager newDockManager) { if (oldDockManager != null) oldDockManager.ActiveViewChanged -= DockManager_ActiveViewChanged; if (newDockManager != null) newDockManager.ActiveViewChanged += DockManager_ActiveViewChanged; }
public void Deserialize(DockManager managerToAttach, XmlNode node, GetContentFromTypeString getObjectHandler) { _rootGroup = new DockablePaneGroup(); _rootGroup.Deserialize(managerToAttach, node, getObjectHandler); //_docsPane = FindDocumentsPane(_rootGroup); ArrangeLayout(); }
protected virtual void OnDockManagerChanged(DockManager oldDockManager, DockManager newDockManager) { }
public Pane(DockManager dockManager) : this(dockManager, null) { }
public void Deserialize(DockManager managerToAttach, System.Xml.XmlNode node, GetContentFromTypeString getObjectHandler) { _dock = (Dock)Enum.Parse(typeof(Dock), node.Attributes["Dock"].Value); if (node.ChildNodes[0].Name == "DockablePane") { DockablePane pane = new DockablePane(managerToAttach); pane.Deserialize(managerToAttach, node.ChildNodes[0], getObjectHandler); _attachedPane = pane; } else if (node.ChildNodes[0].Name == "DocumentsPane") { DocumentsPane pane = managerToAttach.GetDocumentsPane(); pane.Deserialize(managerToAttach, node.ChildNodes[0], getObjectHandler); _attachedPane = pane; } else { _firstChildGroup = new DockablePaneGroup(); _firstChildGroup._parentGroup = this; _firstChildGroup.Deserialize(managerToAttach, node.ChildNodes[0].ChildNodes[0], getObjectHandler); _secondChildGroup = new DockablePaneGroup(); _secondChildGroup._parentGroup = this; _secondChildGroup.Deserialize(managerToAttach, node.ChildNodes[0].ChildNodes[1], getObjectHandler); } }
public static void SetDockManager(DockManager dockManager) { _dockManager = dockManager; }