Provides metadata for RadElement properties, including layout and rendering behavior options.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadElementPropertyMetadata : RadPropertyMetadata
Inheritance: objectRadPropertyMetadataRadElementPropertyMetadata
Inherited Members
Constructors
Initializes a new instance of the RadElementPropertyMetadata class.
public RadElementPropertyMetadata()
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value, property options, and property changed callback.
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options, PropertyChangedCallback propertyChangedCallback)
The default value for the property.
optionsElementPropertyOptionsThe element property options that control layout and rendering behavior.
propertyChangedCallbackPropertyChangedCallbackThe callback method to invoke when the property value changes.
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value and property options.
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options)
The default value for the property.
optionsElementPropertyOptionsThe element property options that control layout and rendering behavior.
Initializes a new instance of the RadElementPropertyMetadata class with the specified default value.
public RadElementPropertyMetadata(object defaultValue)
The default value for the property.
Properties
Gets or sets a value indicating whether property changes affect the arrangement phase of layout for this element.
public bool AffectsArrange { get; set; }
Gets or sets a value indicating whether property changes affect the visual display of the element.
public bool AffectsDisplay { get; set; }
Gets or sets a value indicating whether property changes affect the layout of the element.
public bool AffectsLayout { get; set; }
Gets or sets a value indicating whether property changes affect the measurement phase of layout for this element.
public bool AffectsMeasure { get; set; }
Gets or sets a value indicating whether property changes affect the arrangement phase of the parent element.
public bool AffectsParentArrange { get; set; }
Gets or sets a value indicating whether property changes affect the measurement phase of the parent element.
public bool AffectsParentMeasure { get; set; }
Gets or sets a value indicating whether property changes can be canceled.
public bool Cancelable { get; set; }
Gets or sets a value indicating whether the property value can be inherited from parent elements in the element hierarchy.
public bool CanInheritValue { get; set; }
Gets or sets a value indicating whether property changes invalidate the layout of the element.
public bool InvalidatesLayout { get; set; }
Gets the element property options that define how property changes affect layout and rendering.
public ElementPropertyOptions PropertyOptions { get; }
Methods
Creates a new instance of RadElementPropertyMetadata.
protected override RadPropertyMetadata CreateInstance()
A new RadElementPropertyMetadata instance.
Overrides:
Merges this metadata with base metadata when the property is defined in a derived class.
protected override void Merge(RadPropertyMetadata baseMetadata, RadProperty dp)
The base metadata to merge with.
dpRadPropertyThe dependency property being merged.
Overrides:
Called when metadata is applied to a property, setting up inheritance behavior based on CanInheritValue.
protected override void OnApply(RadProperty dp, Type targetType)
The dependency property this metadata is being applied to.
targetTypeTypeThe target type for the property.
Overrides: