コード例 #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;
 }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the KryptonDockingWorkspace class.
        /// </summary>
        /// <param name="name">Initial name of the element.</param>
        /// <param name="storeName">Name to use for storage pages.</param>
        /// <param name="workspace">Reference to workspace to manage.</param>
        public KryptonDockingWorkspace(string name,
                                       string storeName,
                                       KryptonDockableWorkspace workspace)
            : base(name, storeName)
        {
            SpaceControl = workspace ?? throw new ArgumentNullException(nameof(workspace));

            DockableWorkspaceControl.CellPageInserting += OnSpaceCellPageInserting;
            DockableWorkspaceControl.BeforePageDrag    += OnDockableWorkspaceBeforePageDrag;
        }
コード例 #3
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)
 {
     DockableWorkspaceControl = workspace;
     DockingWorkspaceElement  = element;
 }