What is the easiest way to remove the Silverlight TextBox mouse hover border?
Posted
by Edward Tanguay
on Stack Overflow
See other posts from Stack Overflow
or by Edward Tanguay
Published on 2010-05-23T14:18:05Z
Indexed on
2010/05/23
14:20 UTC
Read the original article
Hit count: 285
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?
© Stack Overflow or respective owner