Class
RadElementPropertyMetadata

Provides metadata for RadElement properties, including layout and rendering behavior options.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RadElementPropertyMetadata : RadPropertyMetadata

Inheritance: objectRadPropertyMetadataRadElementPropertyMetadata

Inherited Members RadPropertyMetadata.DefaultValueWasSet()RadPropertyMetadata.GetDefaultValue(RadObject, RadProperty)RadPropertyMetadata.CreateDefaultValue(RadObject, RadProperty)RadPropertyMetadata.Seal(RadProperty, Type)RadPropertyMetadata.ReadFlag(int)RadPropertyMetadata.WriteFlag(int, bool)RadPropertyMetadata.SetAttachedPropertyUsage(AttachedPropertyUsage)RadPropertyMetadata.Copy(RadProperty)RadPropertyMetadata.InvokeMerge(RadPropertyMetadata, RadProperty)RadPropertyMetadata.ReadOnlyRadPropertyMetadata.CoerceValueCallbackRadPropertyMetadata.IsDefaultValueModifiedRadPropertyMetadata.DefaultValueRadPropertyMetadata.IsInheritedRadPropertyMetadata.SealedRadPropertyMetadata.IsSealedRadPropertyMetadata.PropertyChangedCallbackRadPropertyMetadata.AttachedPropertyUsage

Constructors

RadElementPropertyMetadata()

Initializes a new instance of the RadElementPropertyMetadata class.

Declaration

cs-api-definition
public RadElementPropertyMetadata()

RadElementPropertyMetadata(object)

Initializes a new instance of the RadElementPropertyMetadata class with the specified default value.

Declaration

cs-api-definition
public RadElementPropertyMetadata(object defaultValue)

Parameters

defaultValue

object

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

cs-api-definition
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options)

Parameters

defaultValue

object

The default value for the property.

options

ElementPropertyOptions

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

cs-api-definition
public RadElementPropertyMetadata(object defaultValue, ElementPropertyOptions options, PropertyChangedCallback propertyChangedCallback)

Parameters

defaultValue

object

The default value for the property.

options

ElementPropertyOptions

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

cs-api-definition
public bool AffectsArrange { get; set; }

Property Value

bool

AffectsDisplay

Gets or sets a value indicating whether property changes affect the visual display of the element.

Declaration

cs-api-definition
public bool AffectsDisplay { get; set; }

Property Value

bool

AffectsLayout

Gets or sets a value indicating whether property changes affect the layout of the element.

Declaration

cs-api-definition
public bool AffectsLayout { get; set; }

Property Value

bool

AffectsMeasure

Gets or sets a value indicating whether property changes affect the measurement phase of layout for this element.

Declaration

cs-api-definition
public bool AffectsMeasure { get; set; }

Property Value

bool

AffectsParentArrange

Gets or sets a value indicating whether property changes affect the arrangement phase of the parent element.

Declaration

cs-api-definition
public bool AffectsParentArrange { get; set; }

Property Value

bool

AffectsParentMeasure

Gets or sets a value indicating whether property changes affect the measurement phase of the parent element.

Declaration

cs-api-definition
public bool AffectsParentMeasure { get; set; }

Property Value

bool

CanInheritValue

Gets or sets a value indicating whether the property value can be inherited from parent elements in the element hierarchy.

Declaration

cs-api-definition
public bool CanInheritValue { get; set; }

Property Value

bool

Cancelable

Gets or sets a value indicating whether property changes can be canceled.

Declaration

cs-api-definition
public bool Cancelable { get; set; }

Property Value

bool

InvalidatesLayout

Gets or sets a value indicating whether property changes invalidate the layout of the element.

Declaration

cs-api-definition
public bool InvalidatesLayout { get; set; }

Property Value

bool

PropertyOptions

Gets the element property options that define how property changes affect layout and rendering.

Declaration

cs-api-definition
public ElementPropertyOptions PropertyOptions { get; }

Property Value

ElementPropertyOptions

Methods

CreateInstance()

Creates a new instance of RadElementPropertyMetadata.

Declaration

cs-api-definition
protected override RadPropertyMetadata CreateInstance()

Returns

RadPropertyMetadata

A new RadElementPropertyMetadata instance.

Overrides RadPropertyMetadata.CreateInstance()

Merge(RadPropertyMetadata, RadProperty)

Merges this metadata with base metadata when the property is defined in a derived class.

Declaration

cs-api-definition
protected override void Merge(RadPropertyMetadata baseMetadata, RadProperty dp)

Parameters

baseMetadata

RadPropertyMetadata

The base metadata to merge with.

dp

RadProperty

The dependency property being merged.

Overrides RadPropertyMetadata.Merge(RadPropertyMetadata, RadProperty)

OnApply(RadProperty, Type)

Called when metadata is applied to a property, setting up inheritance behavior based on CanInheritValue.

Declaration

cs-api-definition
protected override void OnApply(RadProperty dp, Type targetType)

Parameters

dp

RadProperty

The dependency property this metadata is being applied to.

targetType

Type

The target type for the property.

Overrides RadPropertyMetadata.OnApply(RadProperty, Type)