Represents a checkbox ribbon control.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control ControlBase ButtonBase object
- Implements:
-
IKey
Tip ILogicalTarget Parent IVariantControl
Remarks
For detailed documentation on this control's features and how to use them, please see the CheckBox documentation topic.
Constructors
CheckBox()
Initializes an instance of the CheckBox
class.
CheckBox(ICommand)
Initializes an instance of the CheckBox
class.
Properties
IsThreeState
Gets or sets whether the control supports two or three states.
Property Value
- bool:
true
if the control supports three states; otherwise,false
. The default value isfalse
.
Methods
CoerceCommandParameter(DependencyObject, object)
Coerces a new Command
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The System.Windows.DependencyObject whose property is changed. |
value | object | The new value being set. |
Returns
- object:
The coerced value to set.
OnClick(ExecuteRoutedEventArgs)
Called when the control is clicked and a Click event is raised
Parameter | Type | Description |
---|---|---|
e | Execute |
An |
OnContextChanged(ControlContext, ControlContext)
Occurs when the Context property is changed.
Parameter | Type | Description |
---|---|---|
oldContext | Control |
The old Control |
newContext | Control |
The new Control |
OnKeyTipAccessed(string)
Called when key tip access text for the control is typed by the end user.
Parameter | Type | Description |
---|---|---|
keyTipAccessText | string | The key tip access text that was typed. |
Returns
- bool:
true
if an action was executed that should stop key tip mode; otherwise,false
.
Remarks
Implementations of this method should either execute the action associated with the control or move focus to the control so that the end user can take further action such as in a menu.
OnToggle()
Occurs when the checked state of the control is to be toggled.
OnVariantSizeChanged(VariantSize, VariantSize)
Occurs when the Variant
Parameter | Type | Description |
---|---|---|
oldVariantSize | Variant |
The old Variant |
newVariantSize | Variant |
The new Variant |
Fields
IsThreeStateProperty
Identifies the Is
Inherited Members
-
Button
Base. Checked Event -
Button
Base. Indeterminate Event -
Button
Base. Unchecked Event -
Button
Base. Click Mode Property -
Button
Base. Has Popup Property -
Button
Base. Image Source Small Size Property -
Button
Base. Input Gesture Text Property -
Button
Base. Is Checked Property -
Button
Base. Is Pointer Over Property -
Button
Base. Is Pressed Property -
Button
Base. Menu Item Description Property -
Button
Base. Stays Open On Click Property -
Button
Base. Measure Override(Size) -
Button
Base. On Checked() -
Button
Base. On Command Changed(ICommand, ICommand) -
Button
Base. On Create Automation Peer() -
Button
Base. On Indeterminate() -
Button
Base. On Key Down(Key Event Args) -
Button
Base. On Key Up(Key Event Args) -
Button
Base. On Lost Keyboard Focus(Keyboard Focus Changed Event Args) -
Button
Base. On Lost Mouse Capture(Mouse Event Args) -
Button
Base. On Mouse Enter(Mouse Event Args) -
Button
Base. On Mouse Leave(Mouse Event Args) -
Button
Base. On Mouse Left Button Down(Mouse Button Event Args) -
Button
Base. On Mouse Left Button Up(Mouse Button Event Args) -
Button
Base. On Mouse Move(Mouse Event Args) -
Button
Base. On Preview Click(Execute Routed Event Args) -
Button
Base. On Property Changed(Dependency Property Changed Event Args) -
Button
Base. On Render Size Changed(Size Changed Info) -
Button
Base. On Screen Tip Opening(Routed Event Args) -
Button
Base. On Touch Leave(Touch Event Args) -
Button
Base. On Unchecked() -
Button
Base. Update Can Execute() -
Button
Base. Click Mode -
Button
Base. Has Popup -
Button
Base. Is Checked -
Button
Base. Image Source Small Size -
Button
Base. Input Gesture Text -
Button
Base. Is Enabled Core -
Button
Base. Is Pointer Over -
Button
Base. Is Pressed -
Button
Base. Menu Item Description -
Button
Base. Stays Open On Click -
Button
Base. Checked -
Button
Base. Indeterminate -
Button
Base. Unchecked -
Control
Base. Click Event -
Control
Base. Preview Click Event -
Control
Base. Screen Tip Closing Event -
Control
Base. Screen Tip Opening Event -
Control
Base. Command Property -
Control
Base. Command Parameter Property -
Control
Base. Command Target Property -
Control
Base. Context Property -
Control
Base. Has Image Property -
Control
Base. Has Label Property -
Control
Base. Id Property -
Control
Base. Image Source Large Property -
Control
Base. Image Source Small Property -
Control
Base. Is Highlighted Property -
Control
Base. Key Tip Access Text Property -
Control
Base. Label Property -
Control
Base. Screen Tip Description Property -
Control
Base. Screen Tip Footer Property -
Control
Base. Screen Tip Header Property -
Control
Base. Screen Tip Help Uri Property -
Control
Base. Screen Tip Image Source Property -
Control
Base. Variant Size Property -
Control
Base. On Access Key(Access Key Event Args) -
Control
Base. On Screen Tip Closing(Routed Event Args) -
Control
Base. Raise Click Event(Execute Routed Event Args) -
Control
Base. To String() -
Control
Base. Can Update Can Execute When Hidden -
Control
Base. Command -
Control
Base. Command Parameter -
Control
Base. Command Target -
Control
Base. Context -
Control
Base. Has Image -
Control
Base. Has Label -
Control
Base. Id -
Control
Base. Image Source Large -
Control
Base. Image Source Small -
Control
Base. Is Highlighted -
Control
Base. Key Tip Access Text -
Control
Base. Label -
Control
Base. Screen Tip Description -
Control
Base. Screen Tip Footer -
Control
Base. Screen Tip Header -
Control
Base. Screen Tip Help Uri -
Control
Base. Screen Tip Image Source -
Control
Base. Variant Size -
Control
Base. Click -
Control
Base. Preview Click -
Control
Base. Screen Tip Closing -
Control
Base. Screen Tip Opening