-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingWindow.xaml
More file actions
159 lines (155 loc) · 9.44 KB
/
SettingWindow.xaml
File metadata and controls
159 lines (155 loc) · 9.44 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<Window x:Class="PlayLook.SettingWindow"
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:local="clr-namespace:PlayLook"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Style="{StaticResource MaterialDesignWindow}"
mc:Ignorable="d"
Focusable="True"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
Closing="Window_Closing"
Title="設定" Height="600" Width="800">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Shadows.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<materialDesign:DialogHost DialogTheme="Inherit"
Identifier="RootDialog"
SnackbarMessageQueue="{Binding ElementName=MainSnackbar, Path=MessageQueue}">
<materialDesign:DrawerHost IsLeftDrawerOpen="{Binding ElementName=MenuToggleButton, Path=IsChecked}">
<materialDesign:DrawerHost.LeftDrawerContent>
<DockPanel MinWidth="220">
<ToggleButton Margin="16"
HorizontalAlignment="Right"
DockPanel.Dock="Top"
IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}"
Style="{StaticResource MaterialDesignHamburgerToggleButton}" />
<!--
<TextBox x:Name="ItemsSearchBox"
Width="200"
Margin="16,4"
materialDesign:HintAssist.Hint="Search"
materialDesign:TextFieldAssist.DecorationVisibility="Collapsed"
materialDesign:TextFieldAssist.HasClearButton="True"
DockPanel.Dock="Top"
Style="{StaticResource MaterialDesignOutlinedTextBox}"
Text="{Binding SearchKeyword, UpdateSourceTrigger=PropertyChanged}" />
<ListBox x:Name="DemoItemsListBox"
Margin="0,16,0,16"
AutomationProperties.Name="DemoPagesListBox"
ItemsSource="{Binding DemoItems}"
PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp"
SelectedIndex="{Binding SelectedIndex}"
SelectedItem="{Binding SelectedItem, UpdateSourceTrigger=PropertyChanged}"
Style="{StaticResource MaterialDesignNavigationPrimaryListBox}">
<ListBox.Resources>
<Style TargetType="ScrollBar" BasedOn="{StaticResource MaterialDesignScrollBarMinimal}" />
</ListBox.Resources>
<ListBox.ItemTemplate>
<DataTemplate DataType="domain:DemoItem">
<TextBlock Margin="24,4,0,4"
AutomationProperties.AutomationId="DemoItemPage"
Text="{Binding Name}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
-->
<TextBlock
Margin="16,4"
FontSize="22"
Text="WIP" />
</DockPanel>
</materialDesign:DrawerHost.LeftDrawerContent>
<DockPanel>
<materialDesign:ColorZone Padding="16"
DockPanel.Dock="Top"
Mode="PrimaryLight">
<StackPanel
Orientation="Horizontal">
<ToggleButton x:Name="MenuToggleButton"
Style="{StaticResource MaterialDesignHamburgerToggleButton}" />
<TextBlock
FontSize="22"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="PlayLook - 設定" />
</StackPanel>
</materialDesign:ColorZone>
<Grid Width="765">
<StackPanel>
<Label FontSize="22">General</Label>
<Grid Height="auto">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="表示をタイトルのみにする"
VerticalAlignment="Center"/>
<ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}"
IsChecked="{Binding Path=OnlyTitle}"
Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="テーマ"
Grid.Row="1" VerticalAlignment="Center"/>
<ListBox SelectedIndex="0" x:Name="ThemeListBox"
Style="{StaticResource MaterialDesignToolToggleListBox}"
SelectionChanged="Theme_SelectionChanged"
Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center">
<ListBoxItem Content="Light" />
<ListBoxItem Content="Dark"/>
</ListBox>
</Grid>
<Label FontSize="22">Advanced</Label>
<Grid Height="auto">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="再生情報をHTTPサーバにPOSTする"
VerticalAlignment="Center" Grid.ColumnSpan="2"/>
<ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}"
IsChecked="{Binding Path=HTTPConection}"
Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="366,0,0,0"/>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="POST先のURL"
Grid.Row="1" VerticalAlignment="Center" Grid.ColumnSpan="2"/>
<TextBox Style="{StaticResource MaterialDesignFilledTextBox}"
materialDesign:HintAssist.Hint="URL Here"
VerticalAlignment="Center" Width="400"
Grid.Column="2" Grid.Row="1"
Text="{Binding PostDest, UpdateSourceTrigger=LostFocus}"
/>
</Grid>
<Label FontSize="22">About</Label>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="バージョン"
VerticalAlignment="Center"/>
<TextBlock Style="{StaticResource MaterialDesignSubtitle1TextBlock}" Text="{Binding Version}"
Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
</Grid>
</StackPanel>
</Grid>
</DockPanel>
</materialDesign:DrawerHost>
</materialDesign:DialogHost>
</Window>