123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style x:Key="PagesView_txtContext" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Segoe UI" />
- <Setter Property="FontSize" Value="12" />
- </Style>
- <Style x:Key="ViewMode_txtContext" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Segoe UI" />
- <Setter Property="FontSize" Value="11" />
- </Style>
- <Style x:Key="PagesView_titleContext" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value=" Segoe UI Semibold" />
- <Setter Property="FontWeight" Value="SemiBold" />
- <Setter Property="FontSize" Value="14" />
- </Style>
- <!-- style for property seconed title -->
- <Style x:Key="PropertyHeaderLv2" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Segoe UI" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="LineHeight" Value="20" />
- <Setter Property="FontWeight" Value="SemiBold" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
- </Style>
- <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3" />
- <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA" />
- <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5" />
- <Style x:Key="TextBoxStyleRadius" TargetType="{x:Type TextBox}">
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
- <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
- <Setter Property="HorizontalContentAlignment" Value="Left" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="True">
- <ScrollViewer
- x:Name="PART_ContentHost"
- Focusable="false"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Opacity" Value="0.56" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource TextBox.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource TextBox.Focus.Border}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="Print_normalTxtStyle" TargetType="TextBox">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate>
- <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
- <Border BorderBrush="{StaticResource color.field.border.norm}" Background="{StaticResource color.field.bg.def}" BorderThickness="1" CornerRadius="4">
- <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"
- VerticalAlignment="Center" MinHeight="22" Margin="8,0,0,0" Opacity="1" />
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Opacity" Value="0.6"></Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|