In This Article

OverlayTitleBar Class

A title bar for use on an OverlayHost.

public class OverlayTitleBar : ChromedTitleBar, 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 ChromedTitleBar object
Implements:
IDataContextProvider ILogical IThemeVariantHost IResourceHost IResourceNode IStyleHost ISetLogicalParent ISetInheritanceParent IStyleable INamed IInputElement IDataTemplateHost ISetterValue

Remarks

For internal use only.

Constructors

OverlayTitleBar(Action?)

Initializes a new instance of the class.

public OverlayTitleBar(Action? closeAction)
Parameter Type Description
closeAction Action

The action, if any, associated with the close command.

Properties

IsIntegratedWithParentWindow

Indicates if the title bar is integrated with the parent Window.

protected override bool IsIntegratedWithParentWindow { get; }

Property Value

bool

Remarks

For internal use only.

StyleKeyOverride

Gets the type by which the element is styled.

protected override Type StyleKeyOverride { get; }

Property Value

Type

Remarks

Usually controls are styled by their own type, but there are instances where you want an element to be styled by its base type, e.g. creating SpecialButton that derives from Button and adds extra functionality but is still styled as a regular Button. Override this property to change the style for a control class, returning the type that you wish the elements to be styled as.

Methods

OnClose()

Called when the close button is invoked.

protected override void OnClose()

Inherited Members

Extension Methods