|
1 | | -<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 1 | +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | xmlns:system="clr-namespace:System;assembly=mscorlib"> |
4 | 4 | <Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}"> |
|
11 | 11 | <Setter Property="CaretBrush" Value="#E3E0E3" /> |
12 | 12 | <Setter Property="VerticalContentAlignment" Value="Center" /> |
13 | 13 | <Setter Property="Stylus.IsFlicksEnabled" Value="False" /> |
| 14 | + <Setter Property="Template"> |
| 15 | + <Setter.Value> |
| 16 | + <ControlTemplate TargetType="{x:Type TextBox}"> |
| 17 | + <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> |
| 18 | + <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" |
| 19 | + Background="{TemplateBinding Background}"> |
| 20 | + <ScrollViewer.ContentTemplate> |
| 21 | + <DataTemplate> |
| 22 | + <Grid Background="{Binding Background, ElementName=PART_ContentHost}" RenderOptions.ClearTypeHint="Enabled"> |
| 23 | + <ContentPresenter Content="{Binding Path=Content, ElementName=PART_ContentHost}"></ContentPresenter> |
| 24 | + </Grid> |
| 25 | + </DataTemplate> |
| 26 | + </ScrollViewer.ContentTemplate> |
| 27 | + </ScrollViewer> |
| 28 | + </Border> |
| 29 | + </ControlTemplate> |
| 30 | + </Setter.Value> |
| 31 | + </Setter> |
14 | 32 | </Style> |
15 | 33 | <Style x:Key="BaseWindowBorderStyle" TargetType="{x:Type Border}"> |
16 | 34 | <Setter Property="BorderThickness" Value="0" /> |
|
32 | 50 | <Setter Property="Foreground" Value="#FFFFF8" /> |
33 | 51 | <Setter Property="FontSize" Value="16" /> |
34 | 52 | <Setter Property="FontWeight" Value="Medium" /> |
| 53 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
35 | 54 | </Style> |
36 | 55 | <Style x:Key="BaseItemSubTitleStyle" TargetType="{x:Type TextBlock}" > |
37 | 56 | <Setter Property="Foreground" Value="#D9D9D4" /> |
| 57 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
38 | 58 | </Style> |
39 | 59 | <Style x:Key="BaseItemNumberStyle" TargetType="{x:Type TextBlock}"> |
40 | 60 | <Setter Property="VerticalAlignment" Value="Center" /> |
41 | 61 | <Setter Property="HorizontalAlignment" Value="Center" /> |
42 | 62 | <Setter Property="Margin" Value="3 0 0 0" /> |
43 | 63 | <Setter Property="FontSize" Value="22" /> |
| 64 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
44 | 65 | </Style> |
45 | 66 | <Style x:Key="BaseItemTitleSelectedStyle" TargetType="{x:Type TextBlock}" > |
46 | 67 | <Setter Property="Foreground" Value="#FFFFF8" /> |
47 | 68 | <Setter Property="FontSize" Value="16" /> |
48 | 69 | <Setter Property="FontWeight" Value="Medium" /> |
| 70 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
49 | 71 | </Style> |
50 | 72 | <Style x:Key="BaseItemSubTitleSelectedStyle" TargetType="{x:Type TextBlock}" > |
51 | 73 | <Setter Property="Foreground" Value="#D9D9D4" /> |
| 74 | + <Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/> |
52 | 75 | </Style> |
53 | 76 |
|
54 | 77 | <Style x:Key="BaseListboxStyle" TargetType="{x:Type ListBox}"> |
|
0 commit comments