|
9 | 9 | Background="{DynamicResource MaterialDesignPaper}"
|
10 | 10 | FontFamily="pack://application:,,,/MaterialDesignThemes.Wpf;component/Resources/Roboto/#Roboto"
|
11 | 11 | mc:Ignorable="d"
|
12 |
| - d:DesignWidth="200" d:DesignHeight="120"> |
| 12 | + d:DesignWidth="477" d:DesignHeight="272"> |
13 | 13 | <UserControl.Resources>
|
14 | 14 | <ResourceDictionary>
|
15 | 15 | <ResourceDictionary.MergedDictionaries>
|
16 |
| - |
17 |
| - <!-- light or dark theme --> |
18 | 16 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
|
19 |
| - <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Shadows.xaml" /> |
20 |
| - <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" /> |
21 |
| - |
22 |
| - <!-- primary color --> |
23 |
| - <ResourceDictionary> |
24 |
| - <!-- include your primary palette --> |
25 |
| - <ResourceDictionary.MergedDictionaries> |
26 |
| - <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/MaterialDesignColor.Indigo.xaml" /> |
27 |
| - </ResourceDictionary.MergedDictionaries> |
28 |
| - <!-- |
29 |
| - include three hues from the primary palette (and the associated forecolours). |
30 |
| - Do not rename, keep in sequence; light to dark. |
31 |
| - --> |
32 |
| - <SolidColorBrush x:Key="PrimaryHueLightBrush" Color="{StaticResource Primary100}"/> |
33 |
| - <SolidColorBrush x:Key="PrimaryHueLightForegroundBrush" Color="{StaticResource Primary100Foreground}"/> |
34 |
| - <SolidColorBrush x:Key="PrimaryHueMidBrush" Color="{StaticResource Primary500}"/> |
35 |
| - <SolidColorBrush x:Key="PrimaryHueMidForegroundBrush" Color="{StaticResource Primary500Foreground}"/> |
36 |
| - <SolidColorBrush x:Key="PrimaryHueDarkBrush" Color="{StaticResource Primary700}"/> |
37 |
| - <SolidColorBrush x:Key="PrimaryHueDarkForegroundBrush" Color="{StaticResource Primary700Foreground}"/> |
38 |
| - </ResourceDictionary> |
39 |
| - |
40 |
| - <!-- secondary colour --> |
41 |
| - <ResourceDictionary> |
42 |
| - <!-- include your secondary pallette --> |
43 |
| - <ResourceDictionary.MergedDictionaries> |
44 |
| - <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/MaterialDesignColor.Yellow.xaml" /> |
45 |
| - </ResourceDictionary.MergedDictionaries> |
46 |
| - |
47 |
| - <!-- include a single secondary accent color (and the associated forecolour) --> |
48 |
| - <SolidColorBrush x:Key="SecondaryAccentBrush" Color="{StaticResource Accent700}"/> |
49 |
| - <SolidColorBrush x:Key="SecondaryAccentForegroundBrush" Color="{StaticResource Accent700Foreground}"/> |
50 |
| - </ResourceDictionary> |
| 17 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Slider.xaml" /> |
| 18 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" /> |
| 19 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" /> |
51 | 20 | </ResourceDictionary.MergedDictionaries>
|
52 |
| - |
53 |
| - |
54 |
| - |
55 | 21 | </ResourceDictionary>
|
56 |
| - |
57 |
| - |
58 |
| - |
59 | 22 | </UserControl.Resources>
|
60 | 23 |
|
61 |
| - |
62 |
| - <Grid> |
63 |
| - <wpf:Clock DisplayAutomation="None" Is24Hours="False" VerticalAlignment="Center" HorizontalAlignment="Center"> |
64 |
| - </wpf:Clock> |
65 |
| - |
66 |
| - </Grid> |
67 |
| - |
68 | 24 |
|
| 25 | + <StackPanel Margin="24 0 0 0" HorizontalAlignment="Stretch"> |
| 26 | + <StackPanel Orientation="Horizontal"> |
| 27 | + <TextBlock VerticalAlignment="Bottom">Try me</TextBlock> |
| 28 | + <Slider Minimum="0" Maximum="100" Style="{StaticResource MaterialDesignDiscreteSlider}" |
| 29 | + Value="50" |
| 30 | + Width="280" |
| 31 | + Margin="8 0 0 0"/> |
| 32 | + </StackPanel> |
| 33 | + <Slider Minimum="0" Maximum="10" Margin="0 24 0 0" Style="{StaticResource MaterialDesignDiscreteSlider}" /> |
| 34 | + <Slider Minimum="0" Maximum="10" Margin="0 24 0 0" Style="{StaticResource MaterialDesignDiscreteSlider}" /> |
| 35 | + </StackPanel> |
69 | 36 |
|
70 | 37 | </UserControl>
|
0 commit comments