Table of Contents

Class EmbeddableControlRoot

Namespace
Avalonia.Controls.Embedding
Assembly
Avalonia.Controls.dll
public class EmbeddableControlRoot : TopLevel, INotifyPropertyChanged, IDataContextProvider, IThemeVariantHost, IResourceHost, IResourceNode, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IDataTemplateHost, ISetterValue, ILayoutRoot, IRenderRoot, ICloseable, IStyleHost, ILogicalRoot, ILogical, ITextInputMethodRoot, IInputRoot, IInputElement, IFocusScope, IDisposable
Inheritance
EmbeddableControlRoot
Implements
Inherited Members
Extension Methods

Constructors

EmbeddableControlRoot()

public EmbeddableControlRoot()

EmbeddableControlRoot(ITopLevelImpl)

public EmbeddableControlRoot(ITopLevelImpl impl)

Parameters

impl ITopLevelImpl

Properties

EnforceClientSize

protected bool EnforceClientSize { get; set; }

Property Value

bool

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

Dispose()

public void Dispose()

MeasureOverride(Size)

Measures the control and its child elements as part of a layout pass.

protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize Size

The size available to the control.

Returns

Size

The desired size for the control.

OnCreateAutomationPeer()

Returns a new, type-specific AutomationPeer implementation for the control.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

Prepare()

public void Prepare()

StartRendering()

public void StartRendering()

StopRendering()

public void StopRendering()