ComponentOne Xamarin.iOS Documentation
Controls / Input / Toggle Button
In This Topic
    Toggle Button
    In This Topic

    C1ToggleButton provides a cross-platform implementation of the ToggleButton control. The control represents a two state button that a user can select (check) or clear (uncheck). It can be used to visualize Boolean values much like a CheckBox control, and allows users to make changes in the state of the control by tapping it. Moreover, the C1ToggleButton control offers more style options than a Checkbox control. It provides you the ability to customize the color, text, or even a custom image or view for each state. You can change the state of the control by setting the IsChecked property. Text can be controlled with the CheckedText and UncheckedText properties, images can be controlled with the CheckedImageSource and UncheckedImageSource properties, and views can be controlled with CheckedContent and UncheckedContent properties.