I tried doing the following:
First:
<Window x:Class="WpfApplication00005.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525"
xmlns:editors="http://schemas.actiprosoftware.com/winfx/xaml/editors"><Window.Resources><Style x:Key="myStyle" TargetType="editors:DateTimeEditBox"><Setter Property="SnapsToDevicePixels" Value="True"/><Setter Property="OverridesDefaultStyle" Value="True"/><Setter Property="FocusVisualStyle" Value="{x:Null}"/><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type editors:DateTimeEditBox}"><Border Name="Border"
CornerRadius="2"
Padding="2"
Background="#FFFFFF"
BorderBrush="#888888"
BorderThickness="2" ><ContentPresenter Margin="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
RecognizesAccessKey="True"/></Border></ControlTemplate></Setter.Value></Setter><Style.Triggers><Trigger Property='IsMouseOver' Value='True'><Setter Property='Background' Value='Beige' /></Trigger></Style.Triggers></Style></Window.Resources><Grid><editors:DateTimeEditBox Style="{StaticResource myStyle}" Name="DT" Margin="154,158,229,103"></editors:DateTimeEditBox></Grid></Window>
But it didn't work. The entire DateTimeEditBox became just a box.
I also tried the following:
<Window x:Class="WpfApplication00005.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525"
xmlns:editors="http://schemas.actiprosoftware.com/winfx/xaml/editors"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"><Window.Resources><system:Boolean x:Key="{x:Static themes:AssetResourceKeys.EditIsAnimationEnabledBooleanKey}">False</system:Boolean></Window.Resources><Grid><editors:DateTimeEditBox Background="Red" Name="DT" Margin="154,158,229,103"></editors:DateTimeEditBox></Grid></Window>
..but it still didn't work. When I hover over the DateTimeEditBox, it still has an animation. That is the background becomes transparent/white.
I also tried moving the
<system:Boolean x:Key="{x:Static themes:AssetResourceKeys.EditIsAnimationEnabledBooleanKey}">False</syste
in the App.xaml's <Application.Resources> but it still didn't work.
I was wondering if I am missing something?