Class RadElementPropertyMetadata
Provides metadata for RadElement properties, including layout and rendering behavior options.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadElementPropertyMetadata : RadPropertyMetadata
Remarks
This class extends RadPropertyMetadata to provide element-specific property metadata that controls how property changes affect layout, rendering, and inheritance within the element hierarchy. The metadata includes options for invalidating layout, affecting measurements, controlling inheritance, and determining what aspects of the element tree need to be updated when property values change.
Constructors
RadElementPropertyMetadata()
Initializes a new instance of the RadElementPropertyMetadata class.
Declaration
public RadElementPropertyMetadata()
RadElementPropertyMetadata(Object)
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value.
Declaration
public RadElementPropertyMetadata(object defaultValue)
Parameters
|
System.Object
defaultValue
The default value for the property. |
RadElementPropertyMetadata(Object, ElementPropertyOptions)
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value and property options.
Declaration
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options)
Parameters
|
System.Object
defaultValue
The default value for the property. |
|
ElementPropertyOptions
options
The element property options that control layout and rendering behavior. |
RadElementPropertyMetadata(Object, ElementPropertyOptions, PropertyChangedCallback)
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value, property options, and property changed callback.
Declaration
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options, PropertyChangedCallback propertyChangedCallback)
Parameters
|
System.Object
defaultValue
The default value for the property. |
|
ElementPropertyOptions
options
The element property options that control layout and rendering behavior. |
|
PropertyChangedCallback
propertyChangedCallback
The callback method to invoke when the property value changes. |
Properties
AffectsArrange
Gets or sets a value indicating whether property changes affect the arrangement phase of layout for this element.
Declaration
public bool AffectsArrange { get; set; }
Property Value
|
System.Boolean
|
AffectsDisplay
Gets or sets a value indicating whether property changes affect the visual display of the element.
Declaration
public bool AffectsDisplay { get; set; }
Property Value
|
System.Boolean
|
AffectsLayout
Gets or sets a value indicating whether property changes affect the layout of the element.
Declaration
public bool AffectsLayout { get; set; }
Property Value
|
System.Boolean
|
AffectsMeasure
Gets or sets a value indicating whether property changes affect the measurement phase of layout for this element.
Declaration
public bool AffectsMeasure { get; set; }
Property Value
|
System.Boolean
|
AffectsParentArrange
Gets or sets a value indicating whether property changes affect the arrangement phase of the parent element.
Declaration
public bool AffectsParentArrange { get; set; }
Property Value
|
System.Boolean
|
AffectsParentMeasure
Gets or sets a value indicating whether property changes affect the measurement phase of the parent element.
Declaration
public bool AffectsParentMeasure { get; set; }
Property Value
|
System.Boolean
|
Cancelable
Gets or sets a value indicating whether property changes can be canceled.
Declaration
public bool Cancelable { get; set; }
Property Value
|
System.Boolean
|
CanInheritValue
Gets or sets a value indicating whether the property value can be inherited from parent elements in the element hierarchy.
Declaration
public bool CanInheritValue { get; set; }
Property Value
|
System.Boolean
|
InvalidatesLayout
Gets or sets a value indicating whether property changes invalidate the layout of the element.
Declaration
public bool InvalidatesLayout { get; set; }
Property Value
|
System.Boolean
|
PropertyOptions
Gets the element property options that define how property changes affect layout and rendering.
Declaration
public ElementPropertyOptions PropertyOptions { get; }
Property Value
|
ElementPropertyOptions
|
Methods
CreateInstance()
Creates a new instance of RadElementPropertyMetadata.
Declaration
protected override RadPropertyMetadata CreateInstance()
Returns
|
RadPropertyMetadata
A new RadElementPropertyMetadata instance. |
Overrides
Merge(RadPropertyMetadata, RadProperty)
Merges this metadata with base metadata when the property is defined in a derived class.
Declaration
protected override void Merge(RadPropertyMetadata baseMetadata, RadProperty dp)
Parameters
|
RadPropertyMetadata
baseMetadata
The base metadata to merge with. |
|
RadProperty
dp
The dependency property being merged. |
Overrides
OnApply(RadProperty, Type)
Called when metadata is applied to a property, setting up inheritance behavior based on CanInheritValue.
Declaration
protected override void OnApply(RadProperty dp, Type targetType)
Parameters
|
RadProperty
dp
The dependency property this metadata is being applied to. |
|
System.Type
targetType
The target type for the property. |