ntwain/Tests/Tester.WPF/App.xaml

40 lines
2.4 KiB
Plaintext
Raw Normal View History

2014-04-03 07:01:21 +08:00
<Application x:Class="Tester.WPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2014-09-25 09:52:28 +08:00
StartupUri="Launcher.xaml">
2014-04-03 07:01:21 +08:00
<Application.Resources>
<ResourceDictionary>
2014-09-25 09:52:28 +08:00
<!-- Launcher Style, anything you won't use goes -->
2014-04-03 07:01:21 +08:00
<Style TargetType="{x:Type Rectangle}" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/ModernWPF;component/Themes/ModernBaseDesktop.xaml" />
2014-04-03 07:01:21 +08:00
<ResourceDictionary Source="/ModernWPF;component/Themes/ModernLight.xaml" />
<ResourceDictionary Source="/ModernWPF;component/Themes/ModernStyles.xaml" />
<ResourceDictionary>
2014-09-25 09:52:28 +08:00
<Style x:Key="AppWindow" TargetType="Window" BasedOn="{StaticResource ModernWindowV2}"/>
<Style x:Key="AppListBoxItem" TargetType="ListBoxItem" BasedOn="{StaticResource ModernListBoxItem}">
<Setter Property="BorderThickness" Value="1"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource ModernBackground2}"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{DynamicResource ModernBackground2}"/>
<Setter Property="Foreground" Value="{DynamicResource ModernForeground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ModernAccent}"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="AppListBox" TargetType="ListBox" BasedOn="{StaticResource ModernListBox}">
<Setter Property="ItemContainerStyle" Value="{StaticResource AppListBoxItem}"/>
<Setter Property="BorderThickness" Value="0 1 1 0"/>
<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
</Style>
2014-04-03 07:01:21 +08:00
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>