Gorgon
Show / Hide Table of Contents

Class ContentBaseControl

The base control used to render content.

Inheritance
object
MarshalByRefObject
Component
Control
ScrollableControl
ContainerControl
UserControl
EditorBaseControl
ContentBaseControl
VisualContentBaseControl
Implements
IDropTarget
ISynchronizeInvoke
IWin32Window
IBindableComponent
IComponent
IDisposable
IContainerControl
IRendererControl
IGorgonNamedObject
Inherited Members
EditorBaseControl.IsDesignTime
UserControl.ValidateChildren()
UserControl.ValidateChildren(ValidationConstraints)
UserControl.OnCreateControl()
UserControl.OnLoad(EventArgs)
UserControl.OnResize(EventArgs)
UserControl.OnMouseDown(MouseEventArgs)
UserControl.WndProc(ref Message)
UserControl.AutoSize
UserControl.AutoSizeMode
UserControl.AutoValidate
UserControl.BorderStyle
UserControl.CreateParams
UserControl.DefaultSize
UserControl.AutoSizeChanged
UserControl.AutoValidateChanged
UserControl.Load
ContainerControl.AdjustFormScrollbars(bool)
ContainerControl.OnAutoValidateChanged(EventArgs)
ContainerControl.OnFontChanged(EventArgs)
ContainerControl.OnLayout(LayoutEventArgs)
ContainerControl.OnParentChanged(EventArgs)
ContainerControl.PerformAutoScale()
ContainerControl.ProcessDialogChar(char)
ContainerControl.ProcessDialogKey(Keys)
ContainerControl.ProcessCmdKey(ref Message, Keys)
ContainerControl.ProcessMnemonic(char)
ContainerControl.ProcessTabKey(bool)
ContainerControl.Select(bool, bool)
ContainerControl.UpdateDefaultButton()
ContainerControl.Validate()
ContainerControl.Validate(bool)
ContainerControl.AutoScaleDimensions
ContainerControl.AutoScaleFactor
ContainerControl.AutoScaleMode
ContainerControl.BindingContext
ContainerControl.CanEnableIme
ContainerControl.ActiveControl
ContainerControl.CurrentAutoScaleDimensions
ContainerControl.ParentForm
ScrollableControl.ScrollStateAutoScrolling
ScrollableControl.ScrollStateHScrollVisible
ScrollableControl.ScrollStateVScrollVisible
ScrollableControl.ScrollStateUserHasScrolled
ScrollableControl.ScrollStateFullDrag
ScrollableControl.GetScrollState(int)
ScrollableControl.OnMouseWheel(MouseEventArgs)
ScrollableControl.OnRightToLeftChanged(EventArgs)
ScrollableControl.OnPaintBackground(PaintEventArgs)
ScrollableControl.OnPaddingChanged(EventArgs)
ScrollableControl.OnVisibleChanged(EventArgs)
ScrollableControl.ScaleControl(SizeF, BoundsSpecified)
ScrollableControl.SetDisplayRectLocation(int, int)
ScrollableControl.ScrollControlIntoView(Control)
ScrollableControl.ScrollToControl(Control)
ScrollableControl.OnScroll(ScrollEventArgs)
ScrollableControl.SetAutoScrollMargin(int, int)
ScrollableControl.SetScrollState(int, bool)
ScrollableControl.AutoScroll
ScrollableControl.AutoScrollMargin
ScrollableControl.AutoScrollPosition
ScrollableControl.AutoScrollMinSize
ScrollableControl.DisplayRectangle
ScrollableControl.HScroll
ScrollableControl.HorizontalScroll
ScrollableControl.VScroll
ScrollableControl.VerticalScroll
ScrollableControl.Scroll
Control.GetAccessibilityObjectById(int)
Control.SetAutoSizeMode(AutoSizeMode)
Control.GetAutoSizeMode()
Control.GetPreferredSize(Size)
Control.AccessibilityNotifyClients(AccessibleEvents, int)
Control.AccessibilityNotifyClients(AccessibleEvents, int, int)
Control.BeginInvoke(Delegate)
Control.BeginInvoke(Delegate, params object[])
Control.BringToFront()
Control.Contains(Control)
Control.CreateAccessibilityInstance()
Control.CreateControlsInstance()
Control.CreateGraphics()
Control.CreateHandle()
Control.CreateControl()
Control.DefWndProc(ref Message)
Control.DestroyHandle()
Control.DoDragDrop(object, DragDropEffects)
Control.DrawToBitmap(Bitmap, Rectangle)
Control.EndInvoke(IAsyncResult)
Control.FindForm()
Control.GetTopLevel()
Control.RaiseKeyEvent(object, KeyEventArgs)
Control.RaiseMouseEvent(object, MouseEventArgs)
Control.Focus()
Control.FromChildHandle(IntPtr)
Control.FromHandle(IntPtr)
Control.GetChildAtPoint(Point, GetChildAtPointSkip)
Control.GetChildAtPoint(Point)
Control.GetContainerControl()
Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
Control.GetNextControl(Control, bool)
Control.GetStyle(ControlStyles)
Control.Hide()
Control.InitLayout()
Control.Invalidate(Region)
Control.Invalidate(Region, bool)
Control.Invalidate()
Control.Invalidate(bool)
Control.Invalidate(Rectangle)
Control.Invalidate(Rectangle, bool)
Control.Invoke(Delegate)
Control.Invoke(Delegate, params object[])
Control.InvokePaint(Control, PaintEventArgs)
Control.InvokePaintBackground(Control, PaintEventArgs)
Control.IsKeyLocked(Keys)
Control.IsInputChar(char)
Control.IsInputKey(Keys)
Control.IsMnemonic(char, string)
Control.LogicalToDeviceUnits(int)
Control.LogicalToDeviceUnits(Size)
Control.ScaleBitmapLogicalToDevice(ref Bitmap)
Control.NotifyInvalidate(Rectangle)
Control.InvokeOnClick(Control, EventArgs)
Control.OnAutoSizeChanged(EventArgs)
Control.OnBackColorChanged(EventArgs)
Control.OnBackgroundImageChanged(EventArgs)
Control.OnBackgroundImageLayoutChanged(EventArgs)
Control.OnBindingContextChanged(EventArgs)
Control.OnCausesValidationChanged(EventArgs)
Control.OnContextMenuChanged(EventArgs)
Control.OnContextMenuStripChanged(EventArgs)
Control.OnCursorChanged(EventArgs)
Control.OnDockChanged(EventArgs)
Control.OnEnabledChanged(EventArgs)
Control.OnForeColorChanged(EventArgs)
Control.OnNotifyMessage(Message)
Control.OnParentBackColorChanged(EventArgs)
Control.OnParentBackgroundImageChanged(EventArgs)
Control.OnParentBindingContextChanged(EventArgs)
Control.OnParentCursorChanged(EventArgs)
Control.OnParentEnabledChanged(EventArgs)
Control.OnParentFontChanged(EventArgs)
Control.OnParentForeColorChanged(EventArgs)
Control.OnParentRightToLeftChanged(EventArgs)
Control.OnParentVisibleChanged(EventArgs)
Control.OnPrint(PaintEventArgs)
Control.OnTabIndexChanged(EventArgs)
Control.OnTabStopChanged(EventArgs)
Control.OnTextChanged(EventArgs)
Control.OnClick(EventArgs)
Control.OnClientSizeChanged(EventArgs)
Control.OnControlAdded(ControlEventArgs)
Control.OnControlRemoved(ControlEventArgs)
Control.OnHandleCreated(EventArgs)
Control.OnLocationChanged(EventArgs)
Control.OnHandleDestroyed(EventArgs)
Control.OnDoubleClick(EventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragOver(DragEventArgs)
Control.OnDragLeave(EventArgs)
Control.OnDragDrop(DragEventArgs)
Control.OnGiveFeedback(GiveFeedbackEventArgs)
Control.OnEnter(EventArgs)
Control.InvokeGotFocus(Control, EventArgs)
Control.OnGotFocus(EventArgs)
Control.OnHelpRequested(HelpEventArgs)
Control.OnInvalidated(InvalidateEventArgs)
Control.OnKeyDown(KeyEventArgs)
Control.OnKeyPress(KeyPressEventArgs)
Control.OnKeyUp(KeyEventArgs)
Control.OnLeave(EventArgs)
Control.InvokeLostFocus(Control, EventArgs)
Control.OnLostFocus(EventArgs)
Control.OnMarginChanged(EventArgs)
Control.OnMouseDoubleClick(MouseEventArgs)
Control.OnMouseClick(MouseEventArgs)
Control.OnMouseCaptureChanged(EventArgs)
Control.OnMouseEnter(EventArgs)
Control.OnMouseLeave(EventArgs)
Control.OnDpiChangedBeforeParent(EventArgs)
Control.OnDpiChangedAfterParent(EventArgs)
Control.OnMouseHover(EventArgs)
Control.OnMouseMove(MouseEventArgs)
Control.OnMouseUp(MouseEventArgs)
Control.OnMove(EventArgs)
Control.OnPaint(PaintEventArgs)
Control.OnQueryContinueDrag(QueryContinueDragEventArgs)
Control.OnRegionChanged(EventArgs)
Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)
Control.OnSizeChanged(EventArgs)
Control.OnChangeUICues(UICuesEventArgs)
Control.OnStyleChanged(EventArgs)
Control.OnSystemColorsChanged(EventArgs)
Control.OnValidating(CancelEventArgs)
Control.OnValidated(EventArgs)
Control.RescaleConstantsForDpi(int, int)
Control.PerformLayout()
Control.PerformLayout(Control, string)
Control.PointToClient(Point)
Control.PointToScreen(Point)
Control.PreProcessMessage(ref Message)
Control.PreProcessControlMessage(ref Message)
Control.ProcessKeyEventArgs(ref Message)
Control.ProcessKeyMessage(ref Message)
Control.ProcessKeyPreview(ref Message)
Control.RaiseDragEvent(object, DragEventArgs)
Control.RaisePaintEvent(object, PaintEventArgs)
Control.RecreateHandle()
Control.RectangleToClient(Rectangle)
Control.RectangleToScreen(Rectangle)
Control.ReflectMessage(IntPtr, ref Message)
Control.Refresh()
Control.ResetMouseEventArgs()
Control.ResetText()
Control.ResumeLayout()
Control.ResumeLayout(bool)
Control.Scale(SizeF)
Control.Select()
Control.SelectNextControl(Control, bool, bool, bool, bool)
Control.SendToBack()
Control.SetBounds(int, int, int, int)
Control.SetBounds(int, int, int, int, BoundsSpecified)
Control.SetBoundsCore(int, int, int, int, BoundsSpecified)
Control.SetClientSizeCore(int, int)
Control.SizeFromClientSize(Size)
Control.SetStyle(ControlStyles, bool)
Control.SetTopLevel(bool)
Control.SetVisibleCore(bool)
Control.RtlTranslateAlignment(HorizontalAlignment)
Control.RtlTranslateAlignment(LeftRightAlignment)
Control.RtlTranslateAlignment(ContentAlignment)
Control.RtlTranslateHorizontal(HorizontalAlignment)
Control.RtlTranslateLeftRight(LeftRightAlignment)
Control.RtlTranslateContent(ContentAlignment)
Control.Show()
Control.SuspendLayout()
Control.Update()
Control.UpdateBounds()
Control.UpdateBounds(int, int, int, int)
Control.UpdateBounds(int, int, int, int, int, int)
Control.UpdateZOrder()
Control.UpdateStyles()
Control.OnImeModeChanged(EventArgs)
Control.AccessibilityObject
Control.AccessibleDefaultActionDescription
Control.AccessibleDescription
Control.AccessibleName
Control.AccessibleRole
Control.AllowDrop
Control.Anchor
Control.AutoScrollOffset
Control.LayoutEngine
Control.BackColor
Control.BackgroundImage
Control.BackgroundImageLayout
Control.Bottom
Control.Bounds
Control.CanFocus
Control.CanRaiseEvents
Control.CanSelect
Control.Capture
Control.CausesValidation
Control.CheckForIllegalCrossThreadCalls
Control.ClientRectangle
Control.ClientSize
Control.CompanyName
Control.ContainsFocus
Control.ContextMenu
Control.ContextMenuStrip
Control.Controls
Control.Created
Control.Cursor
Control.DataBindings
Control.DefaultBackColor
Control.DefaultCursor
Control.DefaultFont
Control.DefaultForeColor
Control.DefaultMargin
Control.DefaultMaximumSize
Control.DefaultMinimumSize
Control.DefaultPadding
Control.DeviceDpi
Control.IsDisposed
Control.Disposing
Control.Dock
Control.DoubleBuffered
Control.Enabled
Control.Focused
Control.Font
Control.FontHeight
Control.ForeColor
Control.Handle
Control.HasChildren
Control.Height
Control.IsHandleCreated
Control.InvokeRequired
Control.IsAccessible
Control.IsMirrored
Control.Left
Control.Location
Control.Margin
Control.MaximumSize
Control.MinimumSize
Control.ModifierKeys
Control.MouseButtons
Control.MousePosition
Control.Name
Control.Parent
Control.ProductName
Control.ProductVersion
Control.RecreatingHandle
Control.Region
Control.RenderRightToLeft
Control.ResizeRedraw
Control.Right
Control.RightToLeft
Control.ScaleChildren
Control.Site
Control.Size
Control.TabIndex
Control.TabStop
Control.Tag
Control.Text
Control.Top
Control.TopLevelControl
Control.ShowKeyboardCues
Control.ShowFocusCues
Control.UseWaitCursor
Control.Visible
Control.Width
Control.PreferredSize
Control.Padding
Control.DefaultImeMode
Control.ImeMode
Control.ImeModeBase
Control.PropagatingImeMode
Control.BackColorChanged
Control.BackgroundImageChanged
Control.BackgroundImageLayoutChanged
Control.BindingContextChanged
Control.CausesValidationChanged
Control.ClientSizeChanged
Control.ContextMenuChanged
Control.ContextMenuStripChanged
Control.CursorChanged
Control.DockChanged
Control.EnabledChanged
Control.FontChanged
Control.ForeColorChanged
Control.LocationChanged
Control.MarginChanged
Control.RegionChanged
Control.RightToLeftChanged
Control.SizeChanged
Control.TabIndexChanged
Control.TabStopChanged
Control.TextChanged
Control.VisibleChanged
Control.Click
Control.ControlAdded
Control.ControlRemoved
Control.DragDrop
Control.DragEnter
Control.DragOver
Control.DragLeave
Control.GiveFeedback
Control.HandleCreated
Control.HandleDestroyed
Control.HelpRequested
Control.Invalidated
Control.PaddingChanged
Control.Paint
Control.QueryContinueDrag
Control.QueryAccessibilityHelp
Control.DoubleClick
Control.Enter
Control.GotFocus
Control.KeyDown
Control.KeyPress
Control.KeyUp
Control.Layout
Control.Leave
Control.LostFocus
Control.MouseClick
Control.MouseDoubleClick
Control.MouseCaptureChanged
Control.MouseDown
Control.MouseEnter
Control.MouseLeave
Control.DpiChangedBeforeParent
Control.DpiChangedAfterParent
Control.MouseHover
Control.MouseMove
Control.MouseUp
Control.MouseWheel
Control.Move
Control.PreviewKeyDown
Control.Resize
Control.ChangeUICues
Control.StyleChanged
Control.SystemColorsChanged
Control.Validating
Control.Validated
Control.ParentChanged
Control.ImeModeChanged
Component.Dispose()
Component.GetService(Type)
Component.ToString()
Component.Events
Component.Container
Component.DesignMode
Component.Disposed
MarshalByRefObject.MemberwiseClone(bool)
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.CreateObjRef(Type)
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Editor.UI.Views
Assembly: Gorgon.Editor.API.dll
Syntax
public class ContentBaseControl : EditorBaseControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IRendererControl, IGorgonNamedObject

Constructors

| Edit this page View Source

ContentBaseControl()

Initializes a new instance of the ContentBaseControl class.

Declaration
public ContentBaseControl()

Properties

| Edit this page View Source

CurrentHostedPanel

Property to return the currently hosted panel in the HostPanelControls.

Declaration
protected Control CurrentHostedPanel { get; }
Property Value
Type Description
Control
| Edit this page View Source

GraphicsContext

Property to return the graphics context.

Declaration
[Browsable(false)]
public IGraphicsContext GraphicsContext { get; }
Property Value
Type Description
IGraphicsContext
| Edit this page View Source

HostPanel

Property to return the panel that hosts the HostPanelControls.

Declaration
[Browsable(false)]
public Panel HostPanel { get; }
Property Value
Type Description
Panel
| Edit this page View Source

HostPanelControls

Property to return the panel that will be used for hosting panels for settings, parameters, etc...

Declaration
[Browsable(false)]
public Panel HostPanelControls { get; }
Property Value
Type Description
Panel
| Edit this page View Source

IdleMethod

Property to set or return the idle method for rendering on the control.

Declaration
protected Func<bool> IdleMethod { get; set; }
Property Value
Type Description
Func<bool>
Remarks

The Stop() method must be called prior to switching idle methods.

| Edit this page View Source

PresentationPanel

Property to return the panel that will be used for presentation of the content.

Declaration
[Browsable(false)]
public Panel PresentationPanel { get; }
Property Value
Type Description
Panel
| Edit this page View Source

RenderControl

Property to set or return the control that will be rendered into using a GorgonSwapChain.

Declaration
[Browsable(true)]
public Control RenderControl { get; set; }
Property Value
Type Description
Control
Remarks

Plug in developers should set this in the IDE designer to set up a swap chain for rendering when this control is created.

If this property is assigned after control creation, the SetupGraphics(IGraphicsContext) method must be called again for it to take effect.

If this value is set to null, then no swap chain will be created and the SwapChain property will be set to null.

| Edit this page View Source

Ribbon

Property to return the ribbon for the content view.

Declaration
[Browsable(false)]
public KryptonRibbon Ribbon { get; protected set; }
Property Value
Type Description
KryptonRibbon
| Edit this page View Source

SwapChain

Property to return the swap chain assigned to the control.

Declaration
[Browsable(false)]
public GorgonSwapChain SwapChain { get; }
Property Value
Type Description
GorgonSwapChain

Methods

| Edit this page View Source

AssignDataContextToHostedPanel(IViewModel, bool)

Function to assign a data context to the CurrentHostedPanel.

Declaration
protected void AssignDataContextToHostedPanel(IViewModel dataContext, bool overrideCurrentDc)
Parameters
Type Name Description
IViewModel dataContext

The data context to assign.

bool overrideCurrentDc

true to replace any non-null data context if present, or false to leave the current data context in place.

Remarks

This method is used to assign an instance of a data context to the hosted panel in the HostPanelControls. If the panel does not implement IDataContext<T>, or the type of data context does not match the type of data context the control was built for, an exception will be thrown.

Exceptions
Type Condition
InvalidCastException

Thrown when the CurrentHostedPanel does not accept the type of data context represented by dataContext.

-or-

Thrown if the CurrentHostedPanel does not implement IDataContext<T>.

| Edit this page View Source

Dispose(bool)

Clean up any resources being used.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

true if managed resources should be disposed; otherwise, false.

Overrides
EditorBaseControl.Dispose(bool)
| Edit this page View Source

GetContentFileDragDropData<T>(DragEventArgs)

Function to retrieve content file data from a drag/drop operation.

Declaration
protected T GetContentFileDragDropData<T>(DragEventArgs e) where T : class, IContentFileDragData
Parameters
Type Name Description
DragEventArgs e

The event parameters for the drag/drop event.

Returns
Type Description
T

The data in the drag operation, or null if the data cannot be dragged and dropped onto this control.

Type Parameters
Name Description
T

The type of data to retrieve. Must implement IContentFileDragData and be a reference type.

Remarks

This will return custom drag/drop data that implements the IContentFileDragData interface. Content editor developers should use this method to verify whether the data being dragged into the control is valid or not, and use the returned data to perform the final drop operation.

If the editor cannot support the data being dragged in, then the developer should call the OnBubbleDragEnter(DragEventArgs), OnBubbleDragOver(DragEventArgs),or the OnBubbleDragDrop(DragEventArgs) methods (depending on the event being fired on the control).

See Also
IContentFileDragData
| Edit this page View Source

GetRegisteredPanel<T>(string)

Function to determine if a child panel is registered on this view or not.

Declaration
protected T GetRegisteredPanel<T>(string id) where T : Control
Parameters
Type Name Description
string id

The ID of the panel.

Returns
Type Description
T

The registered panel if found, or null if not.

Type Parameters
Name Description
T

The type of panel.

Exceptions
Type Condition
ArgumentNullException

Thrown when the id parameter is null.

ArgumentEmptyException

Thrown when the id parameter is empty.

| Edit this page View Source

HideHostedPanels()

Function to hide the host panel controls.

Declaration
protected void HideHostedPanels()
| Edit this page View Source

OnBubbleDragDrop(DragEventArgs)

Function to bubble up the drag drop event up to the main project window.

Declaration
protected virtual void OnBubbleDragDrop(DragEventArgs e)
Parameters
Type Name Description
DragEventArgs e

The drag event parameters.

Remarks

Implementors can use this method to notify the parent of this control that a drag drop event is being passed on from this control.

| Edit this page View Source

OnBubbleDragEnter(DragEventArgs)

Function to bubble up the drag enter event up to the main project window.

Declaration
protected virtual void OnBubbleDragEnter(DragEventArgs e)
Parameters
Type Name Description
DragEventArgs e

The drag event parameters.

Remarks

Implementors can use this method to notify the parent of this control that a drag enter event is being passed on from this control.

| Edit this page View Source

OnBubbleDragOver(DragEventArgs)

Function to bubble up the drag drop event up to the main project window.

Declaration
protected virtual void OnBubbleDragOver(DragEventArgs e)
Parameters
Type Name Description
DragEventArgs e

The drag event parameters.

| Edit this page View Source

OnPropertyChanged(string)

Function called when a property is changed on the data context.

Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type Name Description
string propertyName

The name of the property that is updated.

Remarks

Implementors should override this method in order to handle a property change notification from their data context.

| Edit this page View Source

OnPropertyChanging(string)

Function called when a property is changing on the data context.

Declaration
protected virtual void OnPropertyChanging(string propertyName)
Parameters
Type Name Description
string propertyName

The name of the property that is updating.

Remarks

Implementors should override this method in order to handle a property change notification from their data context.

| Edit this page View Source

OnSetDataContext(IEditorContent)

Function to assign the data context to this object.

Declaration
protected void OnSetDataContext(IEditorContent dataContext)
Parameters
Type Name Description
IEditorContent dataContext

The data context to assign.

Remarks

Applications must call this method when setting their own data context. Otherwise, some functionality will not work.

| Edit this page View Source

OnSetupGraphics(IGraphicsContext, GorgonSwapChain)

Function to allow user defined setup of the graphics context with this control.

Declaration
protected virtual void OnSetupGraphics(IGraphicsContext context, GorgonSwapChain swapChain)
Parameters
Type Name Description
IGraphicsContext context

The context being assigned.

GorgonSwapChain swapChain

The swap chain assigned to the RenderControl.

| Edit this page View Source

OnShutdown()

Function called to shut down the view and perform any clean up required (including user defined graphics objects).

Declaration
protected virtual void OnShutdown()
| Edit this page View Source

RegisterChildPanel(string, Control)

Function to register a child panel with this content control.

Declaration
protected void RegisterChildPanel(string id, Control control)
Parameters
Type Name Description
string id

The ID for the panel, this should be the view model fully qualified type name.

Control control

The control representing the child panel.

Exceptions
Type Condition
ArgumentNullException

Thrown when the id, or the control parameter is null.

ArgumentEmptyException

Thrown when the id parameter is empty.

ArgumentException

Thrown when the id is already registered.

| Edit this page View Source

ResetDataContext()

Function called when the view should be reset by a null data context.

Declaration
protected virtual void ResetDataContext()
| Edit this page View Source

SetupGraphics(IGraphicsContext)

Function to initialize the graphics context for the control.

Declaration
public void SetupGraphics(IGraphicsContext context)
Parameters
Type Name Description
IGraphicsContext context

The graphics context to use.

Remarks

If the RenderControl property is assigned on control creation, then a primary swap chain will be created for that control and provided via the SwapChain property.

Exceptions
Type Condition
ArgumentNullException

Thrown when the context parameter is null.

| Edit this page View Source

ShowFocusState(bool)

Function to show the control keyboard focus state.

Declaration
protected void ShowFocusState(bool isFocused)
Parameters
Type Name Description
bool isFocused

true if focused, false if not.

| Edit this page View Source

ShowHostedPanel(Control)

Function to show a hosted panel.

Declaration
protected void ShowHostedPanel(Control control)
Parameters
Type Name Description
Control control

The control to show.

Remarks

Only a single control can be active in the host at a time. Adding another control will hide the previous control.

Exceptions
Type Condition
ArgumentNullException

Thrown when the control parameter is null.

| Edit this page View Source

Start()

Function to begin rendering on the control.

Declaration
public void Start()
| Edit this page View Source

Stop()

Function to cease rendering on the control.

Declaration
public void Stop()
| Edit this page View Source

UnassignEvents()

Function to unassign events for the data context.

Declaration
protected virtual void UnassignEvents()
| Edit this page View Source

UnregisterChildPanel(string)

Function to register a child panel with this content control.

Declaration
protected void UnregisterChildPanel(string id)
Parameters
Type Name Description
string id

The ID of the panel.

Exceptions
Type Condition
ArgumentNullException

Thrown when the id parameter is null.

ArgumentEmptyException

Thrown when the id parameter is empty.

KeyNotFoundException

Thrown when the id is not registered.

Events

| Edit this page View Source

BubbleDragDrop

Event triggered when a drop operation is to be bubbled up to its parent.

Declaration
public event EventHandler<DragEventArgs> BubbleDragDrop
Event Type
Type Description
EventHandler<DragEventArgs>
| Edit this page View Source

BubbleDragEnter

Event triggered when a drag enter operation is to be bubbled up to its parent.

Declaration
public event EventHandler<DragEventArgs> BubbleDragEnter
Event Type
Type Description
EventHandler<DragEventArgs>
| Edit this page View Source

BubbleDragOver

Event triggered when a drop operation is to be bubbled up to its parent.

Declaration
public event EventHandler<DragEventArgs> BubbleDragOver
Event Type
Type Description
EventHandler<DragEventArgs>
| Edit this page View Source

ContentClosed

Event triggered when the content is closed.

Declaration
public event EventHandler ContentClosed
Event Type
Type Description
EventHandler

Implements

IDropTarget
ISynchronizeInvoke
IWin32Window
IBindableComponent
IComponent
IDisposable
IContainerControl
IRendererControl
IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
GorgonControlExtensions.GetAncestor<T>(Control)
GorgonControlExtensions.GetFirstAncestor<T>(Control)
GorgonControlExtensions.GetForm<T>(Control)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author