What is the easiest way to remove the Silverlight TextBox mouse hover border?
- by Edward Tanguay
I want to display text in a Silverlight application so that the user can copy and paste it elsewhere (as one is used to doing on an HTML web site).
If I use TextBlock, then the user cannot cut and paste.
Therefore I use TextBox, but it has a default border on it. I can remove the border with BorderThickness="0" like this:
<TextBox
Grid.Column="1"
BorderThickness="0"
Text="{Binding ViewModelBindingStringsBlockHelp}"/>
which works great:
However, when the user hovers over the text box to select the text, another border appears:
I've found purported solutions but they seem to require pages of XAML.
I'm looking for a simple solution like this:
HoverBorderThickness="0"
What is an easy way to hide the hover border on a Silverlight TextBox?