Inheritance: KryptonDockingSpace
Example #1
0
 /// <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)
 {
     DockableWorkspaceControl = workspace;
     WorkspaceElement         = element;
     CellControl = cell;
 }
 /// <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 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;
 }
Example #4
0
        /// <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);
        }
Example #5
0
        /// <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);
        }
Example #6
0
 /// <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;
 }
 /// <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)
 {
     DockableWorkspaceControl = workspace;
     DockingWorkspaceElement  = element;
 }
 /// <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;
 }
        /// <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);
        }
Example #10
0
 /// <summary>
 /// Manage docking capability for provided dockable workspace control.
 /// </summary>
 /// <param name="name">Name for new docking element.</param>
 /// <param name="storeName">Store name for docking element.</param>
 /// <param name="w">Reference to dockable workspace.</param>
 /// <returns>KryptonDockingWorkspace instance created.</returns>
 public KryptonDockingWorkspace ManageWorkspace(string name, string storeName, KryptonDockableWorkspace w)
 {
     KryptonDockingWorkspace dockingWorkspace = new KryptonDockingWorkspace(name, storeName, w);
     Add(dockingWorkspace);
     return dockingWorkspace;
 }
Example #11
0
 /// <summary>
 /// Manage auto hidden/docked capabilities for provided control.
 /// </summary>
 /// <param name="name">Name for new docking element.</param>
 /// <param name="c">Reference to control instance.</param>
 /// <param name="workspace">Reference to docking workspace that is inside the control.</param>
 /// <returns>KryptonDockingControl instance created.</returns>
 public KryptonDockingControl ManageControl(string name, Control c, KryptonDockingWorkspace workspace)
 {
     KryptonDockingControl dockingControl = new KryptonDockingControl(name, c, workspace);
     Add(dockingControl);
     return dockingControl;
 }
Example #12
0
 /// <summary>
 /// Manage auto hidden/docked capabilities for provided control.
 /// </summary>
 /// <param name="c">Reference to control instance.</param>
 /// <param name="workspace">Reference to docking workspace that is inside the control.</param>
 /// <returns>KryptonDockingControl instance created.</returns>
 public KryptonDockingControl ManageControl(Control c, KryptonDockingWorkspace workspace)
 {
     return ManageControl("Control", c, workspace);
 }