fix: fix color model tag alignment.
This commit is contained in:
parent
e6a3e187a6
commit
99a9730001
@ -229,7 +229,11 @@
|
||||
Tag="{TemplateBinding ColorModel}">
|
||||
<Grid.Styles>
|
||||
<Style Selector="NumericUpDown /template/ TextBox">
|
||||
<Setter Property="InnerLeftContent" Value="{TemplateBinding Tag}" />
|
||||
<Setter Property="InnerLeftContent">
|
||||
<Template>
|
||||
<TextBlock Width="12" Text="{Binding $parent[NumericUpDown].Tag}" />
|
||||
</Template>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="Grid[Tag=Rgba]">
|
||||
<Style Selector="^ NumericUpDown#Component1NumericUpDown">
|
||||
|
@ -321,7 +321,11 @@
|
||||
UseLayoutRounding="False">
|
||||
<Grid.Styles>
|
||||
<Style Selector="NumericUpDown /template/ TextBox">
|
||||
<Setter Property="InnerLeftContent" Value="{TemplateBinding Tag}" />
|
||||
<Setter Property="InnerLeftContent">
|
||||
<Template>
|
||||
<TextBlock Width="12" Text="{Binding $parent[NumericUpDown].Tag}" />
|
||||
</Template>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Grid.Styles>
|
||||
<!-- Top color model & Hex input -->
|
||||
@ -387,13 +391,7 @@
|
||||
Minimum="{Binding Minimum, ElementName=Component1Slider}"
|
||||
NumberFormat="{StaticResource ColorViewComponentNumberFormat}"
|
||||
ShowButtonSpinner="False"
|
||||
Value="{Binding Value, ElementName=Component1Slider}">
|
||||
<NumericUpDown.Styles>
|
||||
<Style Selector="NumericUpDown /template/ TextBox">
|
||||
<Setter Property="InnerLeftContent" Value="{TemplateBinding Tag}" />
|
||||
</Style>
|
||||
</NumericUpDown.Styles>
|
||||
</NumericUpDown>
|
||||
Value="{Binding Value, ElementName=Component1Slider}" />
|
||||
<primitives:ColorSlider
|
||||
x:Name="Component1Slider"
|
||||
Grid.Row="2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user