aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/FSERoundedCornersComboBox.cs
blob: 333b74c2b0b1c48a5cfeea11e2b8b20e00a2e992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Tango.FSE.Common.Controls
{
    public class FSERoundedCornersComboBox : ComboBox
    {
        public CornerRadius CornerRadius
        {
            get { return (CornerRadius)GetValue(CornerRadiusProperty); }
            set { SetValue(CornerRadiusProperty, value); }
        }
        public static readonly DependencyProperty CornerRadiusProperty =
            DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(FSERoundedCornersComboBox), new PropertyMetadata(new CornerRadius(3)));

        static FSERoundedCornersComboBox()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(FSERoundedCornersComboBox), new FrameworkPropertyMetadata(typeof(FSERoundedCornersComboBox)));
        }
    }
}