Skip to main content

DependsOnAttribute Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Indicates that the property depends on the value of another property in markup.

public class DependsOnAttribute

Inheritance: Attribute -> DependsOnAttribute

Constructors​

NameDescription
DependsOnAttributeInitializes a new instance of the Avalonia.Metadata.DependsOnAttribute class.

DependsOnAttribute Constructor​

Initializes a new instance of the Avalonia.Metadata.DependsOnAttribute class.

public DependsOnAttribute(string propertyName)

Parameters​

propertyName string

The name of the property that this property depends on.

Properties​

NameDescription
NameGets the name of the property that this property depends on.

Name Property​

Gets the name of the property that this property depends on.

public string Name { get; set; }