コード例 #1
0
            static EtoRadioButton()
            {
                var b = new EtoRadioButton();

                b.SizeToFit();
                defaultHeight = b.Frame.Height;
            }
コード例 #2
0
ファイル: RadioButtonHandler.cs プロジェクト: landytest/Eto
 public RadioButtonHandler()
 {
     Control = new EtoRadioButton {
         Handler = this, Title = string.Empty
     };
     Control.SetButtonType(NSButtonType.Radio);
     Control.Activated += HandleActivated;
 }
コード例 #3
0
ファイル: RadioButtonHandler.cs プロジェクト: pcdummy/Eto
 public RadioButtonHandler()
 {
     Control = new EtoRadioButton {
         Handler = this
     };
     Control.SetButtonType(NSButtonType.Radio);
     Control.Activated += HandleActivated;
 }
コード例 #4
0
ファイル: RadioButton.cs プロジェクト: zzlvff/Eto
 public RadioButtonHandler()
 {
     Control = new EtoRadioButton {
         TabStop = true
     };
     Control.AutoSize        = true;
     Control.Click          += (sender, e) => Callback.OnClick(Widget, EventArgs.Empty);
     Control.CheckedChanged += (sender, e) => Callback.OnCheckedChanged(Widget, EventArgs.Empty);
 }
コード例 #5
0
ファイル: RadioButton.cs プロジェクト: sami1971/Eto
 public RadioButtonHandler()
 {
     Control          = new EtoRadioButton();
     Control.AutoSize = true;
     Control.Click   += delegate {
         Widget.OnClick(EventArgs.Empty);
     };
     Control.CheckedChanged += delegate {
         Widget.OnCheckedChanged(EventArgs.Empty);
     };
 }
コード例 #6
0
        public RadioButtonHandler()
        {
            Control = new EtoRadioButton
            {
                TabStop   = true,
                AutoSize  = true,
                AutoCheck = false,
                Checked   = false
            };

            Control.Click          += Control_Click;
            Control.CheckedChanged += Control_CheckedChanged;
        }