This repository was archived by the owner on Nov 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsView.xaml
More file actions
58 lines (58 loc) · 2.59 KB
/
SettingsView.xaml
File metadata and controls
58 lines (58 loc) · 2.59 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<ScrollViewer
x:Class="ElvenMinstrelSetList.SettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:properties="clr-namespace:ElvenMinstrelSetList.Properties"
VerticalScrollBarVisibility="Auto"
mc:Ignorable="d">
<StackPanel Width="400">
<StackPanel.Resources>
<Style x:Key="TitleStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="18" />
<Setter Property="FontWeight" Value="bold" />
<Setter Property="Margin" Value="10,20,10,5" />
</Style>
<Style x:Key="DescStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="12" />
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="Margin" Value="10,0" />
</Style>
<Style
x:Key="ToggleStyle"
BasedOn="{StaticResource {x:Type mah:ToggleSwitchButton}}"
TargetType="{x:Type ToggleButton}">
<Setter Property="Margin" Value="10" />
</Style>
<Style x:Key="SliderStyle" TargetType="DockPanel">
<Setter Property="Margin" Value="10,0" />
</Style>
</StackPanel.Resources>
<ToggleButton
Name="BtnUnlock"
Width="200"
MinHeight="20"
Margin="10"
Click="BtnUnlock_Click"
FontSize="14"
IsChecked="False">
<ToggleButton.Style>
<Style>
<Style.Resources>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
</Style.Resources>
<Style.Triggers>
<Trigger Property="ToggleButton.IsChecked" Value="True">
<Setter Property="ToggleButton.Content" Value="Lock Minstrel Set List" />
</Trigger>
<Trigger Property="ToggleButton.IsChecked" Value="False">
<Setter Property="ToggleButton.Content" Value="Unlock Minstrel Set List" />
</Trigger>
</Style.Triggers>
</Style>
</ToggleButton.Style>
</ToggleButton>
</StackPanel>
</ScrollViewer>