public CheckBox(string text, CheckBoxStyle style) : base(text, style) { ClearChildren(); Add(_image = new Image(style.CheckboxOff)); Add(Label); Label.SetAlignment(Alignment.Left); Width = PrefWidth; Height = PrefHeight; IsToggle = true; }
public CheckBoxStyle(CheckBoxStyle style) { CheckboxOff = style.CheckboxOff; CheckboxOn = style.CheckboxOn; CheckboxOffOver = style.CheckboxOffOver; CheckboxOnOver = style.CheckboxOnOver; CheckboxOffDisabled = style.CheckboxOffDisabled; CheckboxOnDisabled = style.CheckboxOnDisabled; Font = style.Font; FontColor = style.FontColor; }