Skip to content

Commit 2236bf3

Browse files
jizcKeboo
authored andcommitted
Change DashedLine default visibility to collapsed (#1019)
The X2 binding is causing the textbox to never give up any width it's gotten. The visibility change makes it so it's only ever an issue if the textbox is disabled and the text is shortend programmatically.
1 parent acd6769 commit 2236bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.TextBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
/>
8282
</Grid>
8383
</Border>
84-
<Line x:Name="DashedLine" VerticalAlignment="Bottom" Visibility="Hidden"
84+
<Line x:Name="DashedLine" VerticalAlignment="Bottom" Visibility="Collapsed"
8585
StrokeThickness="1.25" StrokeDashArray="1,2.5" StrokeDashCap="Round"
8686
X1="0" X2="{Binding ActualWidth, ElementName=border}" Y1="0" Y2="0"
8787
Stroke="{TemplateBinding BorderBrush}" Opacity="0.56" />

0 commit comments

Comments
 (0)