New to Telerik UI for WinForms? Start a free 30-day trial

Maps a RadCheckmark's check state and enabled state to theme visual states.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadCheckmarkStateManager : ItemStateManagerBase

Inheritance: objectItemStateManagerBaseRadCheckmarkStateManager

Constructors

Registers theme states for enabled and disabled checkmarks in the On and Indeterminate states.

C#
public RadCheckmarkStateManager()

Methods

Subscribes to the check-state and enabled properties so theme state can track changes to the element.

C#
protected override void AttachToItemOverride(StateManagerAttachmentData attachData, RadObject item)
Parameters:attachDataStateManagerAttachmentData

The attachment data used to register property-change handlers.

itemRadObject

The element to which the state manager is being attached.

Overrides: ItemStateManagerBase.AttachToItemOverride(StateManagerAttachmentData, RadObject)

Returns the visual-state names supported by the checkmark role.

C#
public override StateDescriptionNode GetAvailableStates(string itemRoleName)
Parameters:itemRoleNamestring

The theme role for which to create the state description.

Returns:

StateDescriptionNode

A state tree containing enabled, disabled, On, and Indeterminate combinations.

Overrides: ItemStateManagerBase.GetAvailableStates(string)

Selects the theme state that matches the checkmark's enabled and check-state values.

C#
public override void ItemStateChanged(RadObject item, RadPropertyChangedEventArgs changeArgs)
Parameters:itemRadObject

The checkmark whose state changed.

changeArgsRadPropertyChangedEventArgs

The property change that triggered the state update.

Overrides: ItemStateManagerBase.ItemStateChanged(RadObject, RadPropertyChangedEventArgs)

Accepts disabled On and Indeterminate state names in addition to states recognized by the base manager.

C#
public override bool VerifyState(string themeRoleName, string key)
Parameters:themeRoleNamestring

The theme role being validated.

keystring

The visual-state key to validate.

Returns:

bool

true if the key is a supported disabled checkmark state or is accepted by the base manager.

Overrides: ItemStateManagerBase.VerifyState(string, string)