-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsWindow.xaml
More file actions
90 lines (90 loc) · 5.36 KB
/
SettingsWindow.xaml
File metadata and controls
90 lines (90 loc) · 5.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<Window x:Class="AutoTotal.SettingsWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:res="clr-namespace:AutoTotal.Properties"
mc:Ignorable="d"
Title="{x:Static res:Resources.ATSettings}"
FontFamily="Bahnschrift"
Height="410"
Width="400"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="Black" >
<Window.Resources>
<Style TargetType="Button">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="BorderBrush" Value="#858585"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderThickness" Value="2"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="20"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="120"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{x:Static res:Resources.FoldersList}" Foreground="White" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,5,5,0"/>
<ListView Grid.Row="1" Name="Folders" Background="Transparent" BorderBrush="White">
<ListView.Resources>
<Style TargetType="ScrollBar">
<Setter Property="Width" Value="10"/>
<Setter Property="Background" Value="#E0E0E0"/>
<Setter Property="BorderBrush" Value="#C0C0C0"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style TargetType="ScrollViewer">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollViewer">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ScrollContentPresenter Grid.Column="0"/>
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="1" Value="{TemplateBinding VerticalOffset}" Maximum="{TemplateBinding ScrollableHeight}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListView.Resources>
</ListView>
<Grid Grid.Row="2" Margin="0,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="{x:Static res:Resources.PlusFolder}" Width="120" Height="35" FontSize="20" HorizontalAlignment="Center" Background="#333333" Foreground="White" Click="AddFolder"/>
<Button Grid.Column="1" Content="{x:Static res:Resources.MinusFolder}" Width="120" Height="35" FontSize="20" HorizontalAlignment="Center" Background="#333333" Foreground="White" Click="DelFolder"/>
</Grid>
<CheckBox Grid.Row="3" x:Name="BlockCheckbox" Content="{x:Static res:Resources.BlockFiles}" FontSize="16" FontWeight="Bold" Margin="10,10,0,10" Foreground="White"/>
<CheckBox Grid.Row="4" x:Name="AutoRunCheckbox" Content="{x:Static res:Resources.Autorun}" FontSize="16" FontWeight="Bold" Margin="10,10,0,15" Foreground="White"/>
<Button Grid.Row="5" Content="{x:Static res:Resources.ChangeVTKey}" Width="290" Height="35" FontSize="20" HorizontalAlignment="Center" Background="#333333" Foreground="White" Click="ChangeVTKey" Margin="0,0,0,10"/>
<Button Grid.Row="6" Content="{x:Static res:Resources.Save}" Width="120" Height="35" FontSize="20" HorizontalAlignment="Center" Background="#333333" Foreground="White" Click="Save"/>
</Grid>
</Window>