How to put dottedline around textbox in wpf ui?

gciraman2024

Member
Joined
May 19, 2024
Messages
12
Programming Experience
3-5
Hi Team

I need help, want to have dotted line within my textbox, here is my code and need some help.

1:
<TextBox x:Name="txtFullWeight" HorizontalAlignment="Left" Foreground="Black"  Height="26" Margin="587,266,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="87" TextChanged="txtFullWeight_TextChanged" IsReadOnly="True"/>
 
Use the <Border> element and put your TextBox in it. See the link below for how to create the dashed lines for the border.

 
Back
Top Bottom