-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
<UserControl x:Class="Grabacr07.KanColleViewer.Views.Settings.Window" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:metro="http://schemes.grabacr.net/winfx/2014/controls" | ||
xmlns:properties="clr-namespace:Grabacr07.KanColleViewer.Properties" | ||
xmlns:viewModels="clr-namespace:Grabacr07.KanColleViewer.ViewModels" | ||
xmlns:metro2="clr-namespace:Grabacr07.Desktop.Metro.Controls;assembly=Desktop.Metro" | ||
<UserControl x:Class="Grabacr07.KanColleViewer.Views.Settings.Window" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:metro="http://schemes.grabacr.net/winfx/2014/controls" | ||
xmlns:properties="clr-namespace:Grabacr07.KanColleViewer.Properties" | ||
xmlns:viewModels="clr-namespace:Grabacr07.KanColleViewer.ViewModels" | ||
xmlns:metro2="clr-namespace:Grabacr07.Desktop.Metro.Controls;assembly=Desktop.Metro" | ||
xmlns:kanColleViewer="clr-namespace:Grabacr07.KanColleViewer" | ||
xmlns:models="clr-namespace:Grabacr07.KanColleViewer.Models" | ||
mc:Ignorable="d" | ||
d:DesignWidth="500" | ||
d:DesignHeight="300" | ||
d:DataContext="{d:DesignInstance viewModels:SettingsViewModel}"> | ||
<UserControl.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Common.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</UserControl.Resources> | ||
|
||
<StackPanel> | ||
<TextBlock Text="{Binding Resources.Settings_Display, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Style="{DynamicResource HeaderTextBlockStyleKey}" /> | ||
|
||
<CheckBox IsChecked="{Binding Source={x:Static kanColleViewer:App.ViewModelRoot}, Path=TopMost, Mode=TwoWay}" | ||
Margin="15,0,0,10"> | ||
<TextBlock Text="{Binding Resources.Settings_Window_TopMost, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type CheckBox}}, Path=Foreground}" | ||
FontSize="13" | ||
Background="Transparent" /> | ||
</CheckBox> | ||
|
||
<Rectangle Height="1" | ||
Style="{DynamicResource SeparatorRectangleStyleKey}" /> | ||
|
||
<TextBlock Text="{Binding Resources.Settings_WindowControl, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Style="{DynamicResource HeaderTextBlockStyleKey}" | ||
Margin="0,10" /> | ||
<metro2:CallMethodButton MethodName="SetLocationLeft" | ||
Padding="20,4" | ||
Margin="15,0,0,10" | ||
HorizontalAlignment="Left"> | ||
<StackPanel> | ||
<TextBlock Text="{Binding Resources.Settings_WindowControl_LocationLeftButton, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type metro2:CallMethodButton}}, Path=Foreground}" | ||
FontSize="13" | ||
HorizontalAlignment="Center" /> | ||
<TextBlock Text="{Binding Resources.Settings_WindowControl_LocationLeftButton_Sub, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
HorizontalAlignment="Center" | ||
FontSize="11" /> | ||
</StackPanel> | ||
</metro2:CallMethodButton> | ||
|
||
<Rectangle Height="1" | ||
Style="{DynamicResource SeparatorRectangleStyleKey}" /> | ||
|
||
</StackPanel> | ||
mc:Ignorable="d" | ||
d:DesignWidth="500" | ||
d:DesignHeight="300" | ||
d:DataContext="{d:DesignInstance viewModels:SettingsViewModel}"> | ||
<UserControl.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Common.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</UserControl.Resources> | ||
|
||
<StackPanel> | ||
<TextBlock Text="{Binding Resources.Settings_Display, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Style="{DynamicResource HeaderTextBlockStyleKey}" /> | ||
|
||
<CheckBox IsChecked="{Binding Source={x:Static kanColleViewer:App.ViewModelRoot}, Path=TopMost, Mode=TwoWay}" | ||
Margin="15,0,0,10"> | ||
<TextBlock Text="{Binding Resources.Settings_Window_TopMost, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type CheckBox}}, Path=Foreground}" | ||
FontSize="13" | ||
Background="Transparent" /> | ||
</CheckBox> | ||
|
||
<Rectangle Height="1" | ||
Style="{DynamicResource SeparatorRectangleStyleKey}" /> | ||
|
||
<TextBlock Text="{Binding Resources.Settings_WindowControl, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Style="{DynamicResource HeaderTextBlockStyleKey}" | ||
Margin="0,10" /> | ||
<metro2:CallMethodButton MethodName="SetLocationLeft" | ||
Padding="20,4" | ||
Margin="15,0,0,10" | ||
HorizontalAlignment="Left"> | ||
<StackPanel> | ||
<TextBlock Text="{Binding Resources.Settings_WindowControl_LocationLeftButton, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type metro2:CallMethodButton}}, Path=Foreground}" | ||
FontSize="13" | ||
HorizontalAlignment="Center" /> | ||
<TextBlock Text="{Binding Resources.Settings_WindowControl_LocationLeftButton_Sub, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" | ||
HorizontalAlignment="Center" | ||
FontSize="11" /> | ||
</StackPanel> | ||
</metro2:CallMethodButton> | ||
|
||
<Rectangle Height="1" | ||
Style="{DynamicResource SeparatorRectangleStyleKey}" /> | ||
|
||
</StackPanel> | ||
</UserControl> |