In This Article

HostWindowControlBase Class

The base WindowControl for use with the Docking product.

public abstract class HostWindowControlBase : WindowControl, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
Inheritance:
object AvaloniaObject Animatable StyledElement Visual Layoutable Interactive InputElement Control TemplatedControl ContentControl WindowControl object
Derived:
FloatingWindowControl StandardMdiWindowControl
Implements:
IDataContextProvider ILogical IThemeVariantHost IResourceHost IResourceNode IStyleHost ISetLogicalParent ISetInheritanceParent IStyleable INamed IInputElement IDataTemplateHost ISetterValue

Constructors

HostWindowControlBase()

Initializes an instance of the class.

protected HostWindowControlBase()

Methods

Activate()

Attempts to bring the window to the foreground and activates it.

public override bool Activate()

Returns

bool:

true if the window was successfully activated; otherwise, false.

GetParentElementForRelativePointerLocation()

Gets the parent element whose position will be the basis for the relative location of the pointer.

protected override Visual? GetParentElementForRelativePointerLocation()

Returns

Visual:

The default value is the first visual parent that is a Panel.

OnTitleBarMenuOpening(DockingMenuEventArgs)

Called when the titlebar should display a context menu.

protected virtual void OnTitleBarMenuOpening(DockingMenuEventArgs e)
Parameter Type Description
e DockingMenuEventArgs

A DockingMenuEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

OnTitleBarMenuOpening(MenuEventArgs)

Called when the titlebar should display a context menu.

protected override sealed void OnTitleBarMenuOpening(MenuEventArgs e)
Parameter Type Description
e MenuEventArgs

A MenuEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

Events

TitleBarMenuOpening

Occurs when the title-bar should display a context menu.

public event EventHandler<DockingMenuEventArgs>? TitleBarMenuOpening

Event Type

EventHandler<DockingMenuEventArgs>

Fields

TitleBarMenuOpeningEvent

Defines the TitleBarMenuOpening event.

public static readonly RoutedEvent<DockingMenuEventArgs> TitleBarMenuOpeningEvent

Inherited Members

Extension Methods