4

For a textbox, when I mouse over it there is this light blue border appearing, any idea how to remove that?

1
  • 1
    Probably all similar programs in your environment work identically -- why would you defeat this behavior and potentially confuse your users, who might be used to it from other applications?
    – sarnold
    Nov 1, 2011 at 1:11

1 Answer 1

6

You can modify the Template, this would be the minimum without any borders at all:

  <TextBox>
    <TextBox.Template>
        <ControlTemplate TargetType="{x:Type TextBox}">
            <ScrollViewer Name="PART_ContentHost"/>
        </ControlTemplate>
    </TextBox.Template>
  </TextBox>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.