Reputation: 6868
I am using following style to have a glowing effect around the textbox...But even if I increase width of BlurRadius, it is not increasing the area that glows.
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Style.Triggers>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Opacity="1" ShadowDepth="0" Color="Red" BlurRadius="10" />
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
EDIT : Textbox
<TextBox
x:Name="a"
DockPanel.Dock="Left"
MaxLength="11"
Height="20"
Width="67"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Right"
utils:InputMasking.Mask="^((\d{0,7})|(\d{0,7}\.\d{0,3}))$">
<TextBox.Text>
<Binding Path="abc.Value" NotifyOnValidationError="True" UpdateSourceTrigger="PropertyChanged" Mode="TwoWay" />
</TextBox.Text>
</TextBox>
Upvotes: 0
Views: 865
Reputation: 2323
Since it was the answer, I will restate it:
Increase the BlurRadius to a much larger number since the change is subtle. Going from 1 to 2 won't be noticeable, but 1 to 50 will be.
Upvotes: 1