forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlidersViewModel.cs
More file actions
40 lines (35 loc) · 1.04 KB
/
SlidersViewModel.cs
File metadata and controls
40 lines (35 loc) · 1.04 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace MaterialDesignDemo.Domain
{
public class SlidersViewModel : ViewModelBase
{
public SliderViewModel DiscreteHorizontal { get; } = new();
public SliderViewModel DiscreteVertical { get; } = new() { Maximum = 100000, TickFrequency = 10000, Value = 50000 };
}
public class SliderViewModel : ViewModelBase
{
private double _minimum;
private double _maximum = 100.0;
private double _tickFrequency = 10.0;
private double _value = 50.0;
public double Minimum
{
get => _minimum;
set => SetProperty(ref _minimum, value);
}
public double Maximum
{
get => _maximum;
set => SetProperty(ref _maximum, value);
}
public double TickFrequency
{
get => _tickFrequency;
set => SetProperty(ref _tickFrequency, value);
}
public double Value
{
get => _value;
set => SetProperty(ref _value, value);
}
}
}