Skip to content
On this page

CheckBox

Checkboxes let users select one or more items from a list, or turn an item on or off.

  • Use checkboxes if multiple options can be selected from a list.
  • Label should be scannable.
  • Selected items are more prominent than unselected items.

Examples

xml
<mdc:CheckBox Text="checkbox" />

Properties

nametypedefault
IsCheckedboolfalse
IconDatastringmark
IconColorColorOnPrimaryColor
BackgroundColorColorPrimaryColor
ShapeShape2
OutlineWidthint2
OutlineColorColorOnSurfaceColor
StateLayerColorColorOnSurfaceColor
RippleDurationfloat0.25
RippleEasingEasingSinInOut
CommandICommand
CommandParameterobject

Events

nametype
ClickedEventHandler<TouchEventArgs>
PressedEventHandler<TouchEventArgs>
ReleasedEventHandler<TouchEventArgs>
LongPressedEventHandler<TouchEventArgs>
RightClicked ( desktop only )EventHandler<TouchEventArgs>