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

RadPropertyMetadata

Updated over 6 months ago

RadPropertyMetadata describes a property and separates the information about a property from the property itself. In this way meta data can be overridden without overriding the implementation of existing properties or creating new properties.

Optionally RadPropertyMetadata can have handlers for property changes and property value validation. RadPropertyMetadata has mechanisms to automatically notify a property owner when specific properties change. Metadata associated with a property is passed in the Register method and is extensible. For example the RadElement AngleTransformProperty has metadata that mark this property as affecting layout.

C#
public static RadProperty AngleTransformProperty =
    RadProperty.Register("AngleTransform", typeof(float), typeof(RadElement),
    new RadElementPropertyMetadata(0f, 
        ElementPropertyOptions.AffectsLayout 
        | ElementPropertyOptions.InvalidatesLayout
        | ElementPropertyOptions.AffectsMeasure));

See Also

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