/// <summary> /// Initialize a new instance of the DockableWorkspaceCellEventArgs class. /// </summary> /// <param name="workspace">Reference to existing dockable workspace control instance.</param> /// <param name="element">Reference to docking workspace element that is managing the dockable workspace control.</param> /// <param name="cell">Reference to workspace control cell instance.</param> public DockableWorkspaceCellEventArgs(KryptonDockableWorkspace workspace, KryptonDockingWorkspace element, KryptonWorkspaceCell cell) { _workspace = workspace; _element = element; _cell = cell; }
/// <summary> /// Initialize a new instance of the KryptonDockingControl class. /// </summary> /// <param name="name">Initial name of the element.</param> /// <param name="control">Reference to control derived instance.</param> /// <param name="workspace">Inner space occupied by a KryptonDockingNavigator.</param> public KryptonDockingControl(string name, Control control, KryptonDockingWorkspace workspace) : base(name) { if (control == null) { throw new ArgumentNullException("control"); } if (workspace == null) { throw new ArgumentNullException("workspace"); } Construct(control, workspace); }
/// <summary> /// Find a workspace element by searching the hierarchy. /// </summary> /// <param name="uniqueName">Named page for which a suitable workspace element is required.</param> /// <returns>KryptonDockingWorkspace reference if found; otherwise false.</returns> public virtual KryptonDockingWorkspace FindDockingWorkspace(string uniqueName) { // Default to not finding the element KryptonDockingWorkspace workspaceElement = null; // Search all child docking elements for (int i = 0; i < Count; i++) { workspaceElement = this[i].FindDockingWorkspace(uniqueName); if (workspaceElement != null) { break; } } return(workspaceElement); }
/// <summary> /// Initialize a new instance of the DockableWorkspaceEventArgs class. /// </summary> /// <param name="workspace">Reference to dockable workspace control instance.</param> /// <param name="element">Reference to docking workspace element that is managing the dockable workspace control.</param> public DockableWorkspaceEventArgs(KryptonDockableWorkspace workspace, KryptonDockingWorkspace element) { _workspace = workspace; _element = element; }