OverlayPaneBase Class
Provides a base implementation for an implementation of an IOverlayPane.
public abstract class OverlayPaneBase : UIControl, IUIControl, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IOverlayPane, IKeyedObject
- Inheritance:
- object MarshalByRefObject Component Control ScrollableControl UIControl object
- Implements:
- IUIControl IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IOverlayPane IKeyedObject
Constructors
OverlayPaneBase(string, IEditorView)
Initializes an instance of the class.
protected OverlayPaneBase(string key, IEditorView view)
| Parameter | Type | Description |
|---|---|---|
| key | string | The string-based key that identifies the overlay pane. |
| view | IEditorView | The editor view where the overlay pane will be displayed. |
Properties
AllowEscKeyToClose
Indicates whether to allow the Esc key to close the overlay pane.
public virtual bool AllowEscKeyToClose { get; }
Property Value
- bool:
trueif theEsckey can close the overlay pane; otherwise,false.
BorderStyle
The border style for the overlay pane.
protected virtual SimpleBorderStyle BorderStyle { get; }
Property Value
- SimpleBorderStyle:
A SimpleBorderStyle value indicating the border style.
ColorScheme
The resolved color scheme to use when rendering.
protected IWindowsColorScheme ColorScheme { get; }
Property Value
- IWindowsColorScheme:
A IWindowsColorScheme that defines the colors to use when rendering.
InstanceKind
The OverlayPaneInstanceKind that indicates how many instances of the pane are permitted across all views.
public virtual OverlayPaneInstanceKind InstanceKind { get; }
Property Value
- OverlayPaneInstanceKind:
The default value is Single.
TargetView
The target IEditorView in which the overlay pane will be displayed.
Methods
Activate()
Activates the pane, called when the pane is already open to perform tasks like moving focus into itself.
public virtual void Activate()
Close()
Closes the pane.
public virtual void Close()
OnClosed()
Raises the Closed event.
protected virtual void OnClosed()
OnKeyDown(KeyEventArgs)
Occurs when a key is pressed.
protected override sealed void OnKeyDown(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | A KeyEventArgs that contains the event data. |
Remarks
Override the ProcessKeyDown(ModifierKeys, Keys) method to customize which keys are handled by the pane.
See Also
OnRender(PaintEventArgs)
Renders the element.
protected override void OnRender(PaintEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | The event data. |
ProcessCmdKey(ref Message, Keys)
Processes a command key.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
| Parameter | Type | Description |
|---|---|---|
| msg | Message | A Message, passed by reference, that represents the window message to process. |
| keyData | Keys | One of the Keys values that represents the key to process. |
Returns
- bool:
trueif the character was processed by the control; otherwise,false.
ProcessDialogKey(Keys)
Processes a dialog key.
protected override bool ProcessDialogKey(Keys keyData)
| Parameter | Type | Description |
|---|---|---|
| keyData | Keys | One of the Keys values that represents the key to process. |
Returns
- bool:
trueif the key was processed by the control; otherwise,false.
ProcessKeyDown(ModifierKeys, Keys)
Handles keystrokes like Esc, Tab, and Shift+Tab.
protected virtual bool ProcessKeyDown(ModifierKeys modifierKeys, Keys key)
| Parameter | Type | Description |
|---|---|---|
| modifierKeys | ModifierKeys | The modifier keys, if any, that are currently pressed. |
| key | Keys | The key to examine. |
Returns
- bool:
trueif the key was handled; otherwise,falseto allow default processing of the key.
Events
Closed
Occurs when the pane is closed.
Inherited Members
- UIControl.Dispose(bool)
- UIControl.AddPendingGraphicsInversion(Rectangle)
- UIControl.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIControl.AddPendingScrollOperation(Rectangle, int, int)
- UIControl.AddToInvalidatedRegion()
- UIControl.AddToInvalidatedRegion(Rectangle)
- UIControl.Arrange(Rectangle)
- UIControl.ArrangeOverride(Size)
- UIControl.ContainsLocation(Point)
- UIControl.CreateChildren()
- UIControl.DpiScaleChanged(SizeF)
- UIControl.GetCursor(Point)
- UIControl.HitTest(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIControl.HitTestRecursive(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIControl.Invalidate(InvalidationLevels, InvalidationTypes)
- UIControl.InvalidateArrange()
- UIControl.InvalidateMeasure()
- UIControl.Measure(Graphics, Size)
- UIControl.MeasureOverride(Graphics, Size)
- UIControl.OnClick(EventArgs)
- UIControl.OnDoubleClick(EventArgs)
- UIControl.OnDpiChangedAfterParent(EventArgs)
- UIControl.OnHandleCreated(EventArgs)
- UIControl.OnLayout(LayoutEventArgs)
- UIControl.OnLocationChanged(EventArgs)
- UIControl.OnMouseCaptureChanged(EventArgs)
- UIControl.OnMouseDown(MouseEventArgs)
- UIControl.OnMouseEnter(EventArgs)
- UIControl.OnMouseHover(EventArgs)
- UIControl.OnMouseLeave(EventArgs)
- UIControl.OnMouseMove(MouseEventArgs)
- UIControl.OnMouseUp(MouseEventArgs)
- UIControl.OnMouseWheel(MouseEventArgs)
- UIControl.OnPaint(PaintEventArgs)
- UIControl.OnPaintBackground(PaintEventArgs)
- UIControl.OnParentChanged()
- UIControl.OnParentChanged(EventArgs)
- UIControl.OnRenderChildElements(PaintEventArgs)
- UIControl.OnResize(EventArgs)
- UIControl.OnRightToLeftChanged(EventArgs)
- UIControl.OnVisibleChanged(EventArgs)
- UIControl.Render(PaintEventArgs)
- UIControl.ResetDoubleBufferCanvas(bool)
- UIControl.ResumePainting()
- UIControl.SuspendPainting()
- UIControl.TransformToAncestor(IUIElement)
- UIControl.TransformToDescendant(IUIElement)
- UIControl.UpdateCursor()
- UIControl.UpdateCursor(Point)
- UIControl.UpdateLayout()
- UIControl.ActualHeight
- UIControl.ActualWidth
- UIControl.BackColor
- UIControl.BackgroundImage
- UIControl.CaptureMouseWhenPressed
- UIControl.ClipBounds
- UIControl.DesiredSize
- UIControl.DpiScaleFactor
- UIControl.Font
- UIControl.ForeColor
- UIControl.IsArrangeValid
- UIControl.IsMeasureValid
- UIControl.IsPaintValid
- UIControl.IsRightToLeft
- UIControl.LastMouseUpButton
- UIControl.PaintingSuspended
- UIControl.UseControlGraphicsForMeasure
- UIControl.UseExtendedDoubleBuffering
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()