TrakCheckBox

TrakCheckBox is a standard WPF style check box will a label to the right of the check box.

Trak CheckBox

The TrakCheckBox size will be based upon the font size for the label. If the label on the TrakCheckBox uses a Large font size then the check box will be larger.

 

NuGet Package

ComponentTrak.UI

Public Properties

Name

Type

Get/Set

Description

IsChecked

Boolean

This property is true when the check mark is shown in the box.

BoxColor

Color

This property defines the color of the border for the check box.

BoxBackgroundColor

Color

This property defines the background of the check box.

FontSize

NamedSize

This property defines the font size for the label.

TextColor

Color

This property defines the color of the label to the right of the check box.

Text

string

This property defines the text to be shown to the right of the check box.

Public Methods

 

Public Events

Name

Description

IsCheckedChanged

This event is called when the IsChecked property is changed.

Checked

This event is called when the IsChecked property is true.

Unchecked

This event is called when the IsChecked property is false.

Clicked

This event is called when the user touches or clicks the check box.

Example:

XAML xmlns:

xmlns:trakUI=”clr-namespace:ComponentTrak.UI;assembly=ComponentTrak.UI”

XAML:

<trakUI:TrakCheckBox x:Name=”EditCheck1″ Text=”Test Check 1″ VerticalOptions=”Center” />