| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
-
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="Margin" Value="0,1" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="border" Width="Auto" BorderThickness="1" BorderBrush="DimGray" >
- <Grid x:Name="grid" Background="#FFFFFF">
- <ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" HorizontalAlignment="Left"></ScrollViewer>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="TextBoxStyleTemplateBinding" TargetType="TextBox">
- <Setter Property="Margin" Value="0,1" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="border" Width="Auto" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" >
- <Grid x:Name="grid" Background="#FFFFFF">
- <ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" HorizontalAlignment="Left"></ScrollViewer>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CommonTextBoxStyle" TargetType="TextBox">
- <Setter Property="Margin" Value="0,1" />
- <Setter Property="Height" Value="22" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="Border1" Width="Auto" BorderBrush="DarkGray" BorderThickness="1">
- <Grid x:Name="grid" Background="#FFFFFF">
- <ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" HorizontalAlignment="Left"></ScrollViewer>
- </Grid>
- </Border>
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
-
- </Style>
- </ResourceDictionary>
|