Frederik D

I'm working on an application and I want a textbox to have a orange border when the textbox gets the focus.

The problem is that when the mouse is getting over the textbox there is a blue border comming around the textbox. I think this is because I use the Windows vista Aero style.

I tried to make a new style for the textbox, but I can't get the blue border away when I hover the textbox.

Is there any solution for this

Re: Windows Presentation Foundation (WPF) Styling a textbox with Aero style

LesterLobo - MSFT

<ControlTemplate TargetType="TextBoxBase">
<Border Name="Bd">
<ScrollViewer Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
<Trigger Property="UIElement.IsFocused">
<Setter Property="Border.BorderBrush" TargetName="Bd" Value="Orange">
<Setter Property="Border.BorderThickness" TargetName="Bd" Value="1">