예제 #1
0
        public RadioButton(int x, int y, int diameter, bool isChecked)
            : base(x, y, diameter, diameter)
        {
            border = new Pen(Color.Gray, 1);
            backgroundUnchecked = new SolidColorBrush(Color.White);

            IsChecked = isChecked;
        }
예제 #2
0
        public Checkbox(int x, int y, int width, int height, bool isChecked)
            : base(x, y, width, height)
        {
            border = new Pen(Color.Gray, 1);
            backgroundUnchecked = new SolidColorBrush(Color.White);

            Checked = isChecked;
        }
예제 #3
0
        public Button(int x, int y, int width, int height, Font font, string text, Color foreColor)
            : base(x, y, width, height)
        {
            Font = font;
            Text = text;
            ForeColor = foreColor;

            backgroundPressed = new SolidColorBrush(ColorUtils.ColorFromRGB(128, 255, 0));
            backgroundPressed.Opacity = 170;// 70;

            backgroundUnpressed = new SolidColorBrush(ColorUtils.ColorFromRGB(0, 0, 0));
            backgroundUnpressed.Opacity = 10;

            border = new Pen(Color.DarkGray, 1);
        }