|
12 | 12 | <converters:TextFieldHintVisibilityConverter x:Key="TextFieldHintVisibilityConverter" IsNotEmptyValue="Collapsed" /> |
13 | 13 | <converters:MathConverter x:Key="MathAddConverter" Operation="Add" /> |
14 | 14 | <converters:MathConverter x:Key="DivisionMathConverter" Operation="Divide" /> |
| 15 | + <converters:BottomThicknessConverter x:Key="BottomThicknessConverter" /> |
15 | 16 | <converters:BrushRoundConverter x:Key="BrushRoundConverter" /> |
16 | 17 | <converters:BooleanToVisibilityConverter x:Key="InverseBoolToVisConverter" TrueValue="Collapsed" FalseValue="Visible"/> |
17 | 18 | <converters:TextFieldClearButtonVisibilityConverter x:Key="ClearTextConverter" /> |
|
486 | 487 | Grid.ColumnSpan="2" |
487 | 488 | Grid.Column="0" |
488 | 489 | VerticalAlignment="Bottom" |
| 490 | + Height="{Binding RelativeSource={RelativeSource Self}, Path=StrokeThickness}" |
| 491 | + Width="{Binding ActualWidth, ElementName=toggleButton}" |
489 | 492 | Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource InverseBoolToVisConverter}}" |
490 | 493 | Data="M 0,0 L 1,0" |
491 | 494 | Stretch="Fill" |
492 | | - StrokeThickness="{Binding BorderThickness.Bottom, ElementName=toggleButton, Converter={StaticResource DivisionMathConverter}, ConverterParameter=0.75}" |
| 495 | + StrokeThickness="{Binding BorderThickness, ElementName=toggleButton, Converter={StaticResource BottomThicknessConverter}, ConverterParameter=1.33}" |
493 | 496 | StrokeDashArray="1,2.5" |
494 | 497 | StrokeDashCap="Round" |
495 | 498 | Stroke="{TemplateBinding BorderBrush}" |
|
796 | 799 | Grid.ColumnSpan="2" |
797 | 800 | Grid.Column="0" |
798 | 801 | VerticalAlignment="Bottom" |
| 802 | + Height="{Binding RelativeSource={RelativeSource Self}, Path=StrokeThickness}" |
| 803 | + Width="{Binding ActualWidth, ElementName=toggleButton}" |
799 | 804 | Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource InverseBoolToVisConverter}}" |
800 | 805 | Data="M 0,0 L 1,0" |
801 | 806 | Stretch="Fill" |
802 | | - StrokeThickness="{Binding BorderThickness.Bottom, ElementName=toggleButton, Converter={StaticResource DivisionMathConverter}, ConverterParameter=0.75}" |
| 807 | + StrokeThickness="{Binding BorderThickness, ElementName=toggleButton, Converter={StaticResource BottomThicknessConverter}, ConverterParameter=1.33}" |
803 | 808 | StrokeDashArray="1,2.5" |
804 | 809 | StrokeDashCap="Round" |
805 | 810 | Stroke="{TemplateBinding BorderBrush}" |
|
0 commit comments