Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            ViewModel = new DialViewModel {
                Max = 100,
                Min = 50,
                Value = 75,
                Notches = {
                    new Dial360Notch(label: "A", angle: -150),
                    new Dial360Notch(label: "B", angle: 150)
                }
            };

            _timer = new DispatcherTimer(TimeSpan.FromMilliseconds(200), DispatcherPriority.ApplicationIdle, OnTick, Dispatcher);

            Loaded += OnLoaded;
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            ViewModel = new DialViewModel {
                Max     = 100,
                Min     = 50,
                Value   = 75,
                Notches =
                {
                    new Dial360Notch(label: "A", angle: -150),
                    new Dial360Notch(label: "B", angle: 150)
                }
            };

            _timer = new DispatcherTimer(TimeSpan.FromMilliseconds(200), DispatcherPriority.ApplicationIdle, OnTick, Dispatcher);

            Loaded += OnLoaded;
        }