CheckBox control (toggle) will be automatically created for all properties of bool type.
cs
public class CheckBoxDataModel
{
public bool CheckBox { get; set; }
public bool CheckBoxChecked { get; set; } = true;
}
Visit toggle bitmap button for more information of how to create toggle button with image.