RadCheckBoxElement
Represents the visual element of a checkbox control that handles the rendering and behavior. Inherits from RadToggleButtonElement and provides checkbox-specific functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCheckBoxElement : RadToggleButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadButtonElementRadToggleButtonElementRadCheckBoxElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadCheckBoxElement()
Fields
Identifies the CheckAlignment dependency property that determines the alignment of the checkbox mark.
public static RadProperty CheckAlignmentProperty
Properties
Gets or sets the alignment of the checkbox mark relative to the text and content.
public ContentAlignment CheckAlignment { get; set; }
Gets or sets a value indicating whether the checkbox is in the checked state. This property provides a simple boolean interface to the underlying toggle state.
public bool Checked { get; set; }
CheckMarkPrimitive
RadCheckmark
Gets the RadCheckmark instance that represents the visual checkmark element of the checkbox. This element handles the rendering of the check state indicator.
[Browsable(false)]
public RadCheckmark CheckMarkPrimitive { get; }
Methods
Creates the child elements that compose the checkbox visual hierarchy including fill, border, text, image, and checkmark primitives.
protected override void CreateChildElements()
Overrides:
Gets the appropriate Windows XP visual style element based on the current state of the checkbox.
public override VisualStyleElement GetXPVisualStyle()
A VisualStyleElement that represents the current checkbox state
Overrides:
Initializes the fields and sets default values for the checkbox element.
protected override void InitializeFields()
Overrides:
Initializes system skin painting and applies system colors to text elements.
protected override void InitializeSystemSkinPaint()
Overrides:
Determines whether a child element should be painted based on system skin settings. Handles special rendering logic for the checkmark primitive when system skins are enabled.
protected override bool ShouldPaintChild(RadElement element)
The child element to evaluate for painting
Returns:true if the element should be painted; otherwise, false
Overrides: