Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Why Does this not work?
posted

Why wont this code work and place a glow around the mask editor?

 

<Window x:Class="Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="Window1" Height="300" Width="300" xmlns:igEditors="http://infragistics.com/Editors">

<Window.Resources>

<!-- This style applies to any TextBox on the page. -->

    <Style  TargetType="{x:Type igEditors:XamMaskedEditor}">

      <Style.Triggers>

 

        <!-- When the TextBox gains focus such as when the cursor appears

             in the TextBox, apply the OuterGlowBitmapEffect to the TextBox. -->

        <Trigger Property="IsFocused" Value="True">

          <Setter Property = "BitmapEffect" >

            <Setter.Value>

 

              <!-- The OuterGlow is blue, extends out 30 pixels, has the 

                   maximum noise possible, and is 40% Opaque. -->

              <OuterGlowBitmapEffect GlowColor="Orange" GlowSize="5"  

                />

            </Setter.Value>

          </Setter>

        </Trigger>

      </Style.Triggers>

    </Style>

</Window.Resources>

 

    <Grid>

        <igEditors:XamMaskedEditor  FlowDirection="LeftToRight" AllowShiftingAcrossSections="True" Mask="nnn" xmlns:igEditors="http://infragistics.com/Editors" Margin="45,82,55,116" />

        <Button Margin="76,0,98,25" VerticalAlignment="Bottom" Height="37" Content="Button"/>

        <TextBox Margin="45,8,47,0" VerticalAlignment="Top" Height="35" Text="TextBox" TextWrapping="Wrap"/>

    </Grid>

</Window>