상속: TextButtonStyle
예제 #1
0
        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;
        }
예제 #2
0
 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;
 }