Files
BeWoPlaner/BeWo/Styles/ControlStyles/TextBoxStyles.xaml

72 lines
3.0 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="TextBoxBase" TargetType="{x:Type TextBox}">
<Setter Property="Margin" Value="3" />
<Setter Property="Padding" Value="3" />
<Setter Property="Height" Value="23" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style
x:Key="TextBoxNoticeBase"
BasedOn="{StaticResource TextBoxBase}"
TargetType="{x:Type TextBox}">
<Setter Property="MinHeight" Value="23" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="AcceptsReturn" Value="True" />
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
</Style>
<Style
x:Key="TextBoxNotice"
BasedOn="{StaticResource TextBoxNoticeBase}"
TargetType="{x:Type TextBox}">
<Setter Property="MaxHeight" Value="150" />
<Setter Property="Height" Value="auto" />
</Style>
<Style
x:Key="TextBoxNoticeLarge"
BasedOn="{StaticResource TextBoxNoticeBase}"
TargetType="{x:Type TextBox}">
<Setter Property="MinHeight" Value="58" />
<Setter Property="Height" Value="auto" />
<Setter Property="MaxHeight" Value="300" />
</Style>
<Style
x:Key="TextBoxNoticeExtended"
BasedOn="{StaticResource TextBoxNoticeBase}"
TargetType="{x:Type TextBox}">
<Setter Property="MinHeight" Value="150" />
<Setter Property="Height" Value="150" />
<Setter Property="MaxHeight" Value="150" />
</Style>
<Style
x:Key="TextBoxNoticeSmallExtended"
BasedOn="{StaticResource TextBoxNoticeBase}"
TargetType="{x:Type TextBox}">
<Setter Property="MinHeight" Value="75" />
<Setter Property="MaxHeight" Value="75" />
</Style>
<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
<Setter Property="OverridesDefaultStyle" Value="true" />
<Setter Property="AllowDrop" Value="true" />
<Setter Property="MinWidth" Value="0" />
<Setter Property="MinHeight" Value="0" />
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<ScrollViewer
x:Name="PART_ContentHost"
Background="Transparent"
Focusable="false"
HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Hidden" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>