Enum
AttachedPropertyUsage

Specifies the scope where an attached property can be applied and how it affects elements.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public enum AttachedPropertyUsage

Fields

Anywhere

Specifies that the attached property can be applied anywhere in the element tree.

Declaration

cs-api-definition
Anywhere = 3

Field Value

AttachedPropertyUsage

Remarks

When set to Anywhere, the attached property has no restrictions on where it can be applied and may affect elements based on other criteria defined by the property's specific implementation.

Children

Specifies that the attached property applies to direct child elements.

Declaration

cs-api-definition
Children = 1

Field Value

AttachedPropertyUsage

Remarks

When set to Children, the attached property affects the direct child elements of the element where it is applied, but not deeper descendants.

Descendants

Specifies that the attached property applies to all descendant elements.

Declaration

cs-api-definition
Descendants = 2

Field Value

AttachedPropertyUsage

Remarks

When set to Descendants, the attached property affects all elements in the subtree rooted at the element where it is applied, cascading through all levels of the hierarchy.

Self

Specifies that the attached property applies only to the element it is set on.

Declaration

cs-api-definition
Self = 0

Field Value

AttachedPropertyUsage

Remarks

When set to Self, the attached property affects only the specific element where it is applied and does not cascade to child or descendant elements.

In this article
DefinitionFieldsAnywhereChildrenDescendantsSelf
Not finding the help you need?
Contact Support