fix: MinHeight TemplateBinding and names.
This commit is contained in:
parent
bf1a2cac39
commit
07278047a4
@ -59,6 +59,7 @@
|
|||||||
<Setter Property="TextBox.Cursor" Value="Ibeam" />
|
<Setter Property="TextBox.Cursor" Value="Ibeam" />
|
||||||
<Setter Property="TextBox.CaretBrush" Value="{DynamicResource TextBoxTextCaretBrush}" />
|
<Setter Property="TextBox.CaretBrush" Value="{DynamicResource TextBoxTextCaretBrush}" />
|
||||||
<Setter Property="TextBox.Padding" Value="{DynamicResource TextBoxContentPadding}" />
|
<Setter Property="TextBox.Padding" Value="{DynamicResource TextBoxContentPadding}" />
|
||||||
|
<Setter Property="TextBox.MinHeight" Value="{DynamicResource TextBoxDefaultHeight}" />
|
||||||
<Setter Property="TextBox.VerticalAlignment" Value="Center" />
|
<Setter Property="TextBox.VerticalAlignment" Value="Center" />
|
||||||
<Setter Property="TextBox.VerticalContentAlignment" Value="Center" />
|
<Setter Property="TextBox.VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="TextBox.FocusAdorner" Value="{x:Null}" />
|
<Setter Property="TextBox.FocusAdorner" Value="{x:Null}" />
|
||||||
@ -69,7 +70,6 @@
|
|||||||
<DataValidationErrors>
|
<DataValidationErrors>
|
||||||
<Border
|
<Border
|
||||||
Name="PART_ContentPresenterBorder"
|
Name="PART_ContentPresenterBorder"
|
||||||
MinHeight="{DynamicResource TextBoxWrapperDefaultHeight}"
|
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
@ -196,11 +196,11 @@
|
|||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^.Large /template/ Border#PART_ContentPresenterBorder">
|
<Style Selector="^.Large">
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource TextBoxWrapperLargeHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource TextBoxLargeHeight}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^.Small /template/ Border#PART_ContentPresenterBorder">
|
<Style Selector="^.Small">
|
||||||
<Setter Property="MinHeight" Value="{DynamicResource TextBoxWrapperSmallHeight}" />
|
<Setter Property="MinHeight" Value="{DynamicResource TextBoxSmallHeight}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^.Bordered">
|
<Style Selector="^.Bordered">
|
||||||
@ -253,7 +253,7 @@
|
|||||||
<Setter Property="TextBox.Cursor" Value="Ibeam" />
|
<Setter Property="TextBox.Cursor" Value="Ibeam" />
|
||||||
<Setter Property="TextBox.CaretBrush" Value="{DynamicResource TextBoxTextCaretBrush}" />
|
<Setter Property="TextBox.CaretBrush" Value="{DynamicResource TextBoxTextCaretBrush}" />
|
||||||
<Setter Property="TextBox.Padding" Value="{DynamicResource TextBoxContentPadding}" />
|
<Setter Property="TextBox.Padding" Value="{DynamicResource TextBoxContentPadding}" />
|
||||||
<Setter Property="TextBox.MinHeight" Value="{DynamicResource TextBoxWrapperDefaultHeight}" />
|
<Setter Property="TextBox.MinHeight" Value="{DynamicResource TextBoxDefaultHeight}" />
|
||||||
<Setter Property="TextBox.VerticalAlignment" Value="Center" />
|
<Setter Property="TextBox.VerticalAlignment" Value="Center" />
|
||||||
<Setter Property="TextBox.VerticalContentAlignment" Value="Center" />
|
<Setter Property="TextBox.VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="TextBox.FocusAdorner" Value="{x:Null}" />
|
<Setter Property="TextBox.FocusAdorner" Value="{x:Null}" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<x:Double x:Key="TextBoxWrapperDefaultHeight">32</x:Double>
|
<x:Double x:Key="TextBoxDefaultHeight">32</x:Double>
|
||||||
<x:Double x:Key="TextBoxWrapperSmallHeight">24</x:Double>
|
<x:Double x:Key="TextBoxSmallHeight">24</x:Double>
|
||||||
<x:Double x:Key="TextBoxWrapperLargeHeight">40</x:Double>
|
<x:Double x:Key="TextBoxLargeHeight">40</x:Double>
|
||||||
|
|
||||||
<CornerRadius x:Key="TextBoxDefaultCornerRadius">3</CornerRadius>
|
<CornerRadius x:Key="TextBoxDefaultCornerRadius">3</CornerRadius>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user