Table of Contents

Class DependsOnAttribute

Namespace
Avalonia.Metadata
Assembly
Avalonia.Base.dll

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

[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
public sealed class DependsOnAttribute : Attribute
Inheritance
DependsOnAttribute
Inherited Members

Constructors

DependsOnAttribute(string)

Initializes a new instance of the DependsOnAttribute class.

public DependsOnAttribute(string propertyName)

Parameters

propertyName string

The name of the property that this property depends on.

Properties

Name

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

public string Name { get; }

Property Value

string