/// <summary> /// Initialize a new instance of the FloatspaceCellEventArgs class. /// </summary> /// <param name="floatspace">Reference to existing floatspace control instance.</param> /// <param name="element">Reference to docking floatspace element that is managing the floatspace control.</param> /// <param name="cell">Reference tofloatspace control cell instance.</param> public FloatspaceCellEventArgs(KryptonFloatspace floatspace, KryptonDockingFloatspace element, KryptonWorkspaceCell cell) { FloatspaceControl = floatspace; FloatspaceElement = element; CellControl = cell; }
/// <summary> /// Initialize a new instance of the KryptonDockingFloatspace class. /// </summary> /// <param name="name">Initial name of the element.</param> public KryptonDockingFloatspace(string name) : base(name, "Floating") { // Create a new floatspace that will be a host for docking pages SpaceControl = new KryptonFloatspace(); FloatspaceControl.Dock = DockStyle.Fill; FloatspaceControl.CellPageInserting += OnSpaceCellPageInserting; FloatspaceControl.PageCloseClicked += OnFloatspacePageCloseClicked; FloatspaceControl.PagesDoubleClicked += OnFloatspacePagesDoubleClicked; FloatspaceControl.PageDropDownClicked += OnFloatspaceDropDownClicked; FloatspaceControl.BeforePageDrag += OnFloatspaceBeforePageDrag; }
/// <summary> /// Initialize a new instance of the KryptonFloatingWindow class. /// </summary> /// <param name="owner">Reference to form that will own all the floating window.</param> /// <param name="floatspace">Reference to owning floatspace instance.</param> public KryptonFloatingWindow(Form owner, KryptonFloatspace floatspace) { // Set the owner of the window so that minimizing the owner will do the same to this Owner = owner; // Set correct form settings for a floating window TopLevel = true; ShowIcon = false; ShowInTaskbar = false; MinimizeBox = false; StartPosition = FormStartPosition.Manual; ButtonSpecMin.ImageStates.ImageDisabled = EMPTY_IMAGE; // Hook into floatspace events and add as the content of the floating window FloatspaceControl = floatspace; FloatspaceControl.CellCountChanged += OnFloatspaceCellCountChanged; FloatspaceControl.CellVisibleCountChanged += OnFloatspaceCellVisibleCountChanged; FloatspaceControl.WorkspaceCellAdding += OnFloatspaceCellAdding; FloatspaceControl.WorkspaceCellRemoved += OnFloatspaceCellRemoved; Controls.Add(FloatspaceControl); }
/// <summary> /// Initialize a new instance of the FloatspaceEventArgs class. /// </summary> /// <param name="floatspace">Reference to new floatspace control instance.</param> /// <param name="element">Reference to docking floatspace element that is managing the floatspace control.</param> public FloatspaceEventArgs(KryptonFloatspace floatspace, KryptonDockingFloatspace element) { FloatspaceControl = floatspace; FloatspaceElement = element; }