In Windows7 (maybe vista too), TextBoxes now get a blue emphasis rect when they receive input focus or get the MouseOver.
In my WPF app, that blue focus rect really sticks out like a sore thumb – it does NOT match the visual style of the rest of the app.
How do I disable it – or better yet, customise it?
(Setting FocusVisualStyle to {x:Null} in the xaml does nothing.)
This is because of the default style applied for the TextBox. To modify this behavior you have to create a custom style/template. just have a look at this sample