New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public enum AttachedPropertyUsage

Fields

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

C#
Anywhere = 3
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.

Specifies that the attached property applies to direct child elements.

C#
Children = 1
Remarks:

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

Specifies that the attached property applies to all descendant elements.

C#
Descendants = 2
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.

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

C#
Self = 0
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