Skip to main content

ISetInheritanceParent Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

Defines an interface through which a Avalonia.StyledElement's inheritance parent can be set.

public interface ISetInheritanceParent

Remarks

You should not usually need to use this interface - it is for advanced scenarios only. Additionally, Avalonia.Controls.ISetLogicalParent also sets the inheritance parent; this interface is only needed where the logical and inheritance parents differ.

Methods

NameDescription
SetParentSets the control's inheritance parent.

SetParent Method

Sets the control's inheritance parent.

public void SetParent(Avalonia.AvaloniaObject parent)

Parameters

parent Avalonia.AvaloniaObject

The parent.