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
1233
border style
posted

I would like to stylize a mask editor to have the same appearance as the default textbox, which has a 3d border.

I added the EditorsGeneric, et. al, to our Merged Style dictionaries, and I created the style below based on the mask base, but the base style is not 3d, and it appears to have a small blue border.  Without researching all of the different styles available, is there a style that mimics the default textbox border?

<Style x:Key="ZipCodeStyle" TargetType="{x:Type XamEditors:XamMaskedEditor}" BasedOn="{StaticResource XamMaskedEditorBaseStyle}"  >

                <Setter Property="FontSize" Value="10.5"/>

  <Setter Property="Height" Value="21"/>

                <Setter Property="Margin" Value="0,2,5,0"/>

                <Style.Triggers>

                    <DataTrigger Binding="{Binding Path=SelectedAddress.IsUSCurrency}" Value="True">

                        <Setter Property="Mask"  Value="#####-9999" />

                    </DataTrigger>

                    <DataTrigger Binding="{Binding Path=SelectedAddress.IsUSCurrency}" Value="False">

                        <Setter Property="Mask" Value="A#A #A#" />

                    </DataTrigger>

                </Style.Triggers>

            </Style>