<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:emmbeeControls"> <local:CalendarConverter x:Key="calendarConverter"/> <ControlTemplate x:Key="IconButton" TargetType="{x:Type ToggleButton}"> <Border> <ContentPresenter/> </Border> </ControlTemplate> <Style TargetType="{x:Type local:ecDateBox}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:ecDateBox}"> <Grid> <Border removed="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" ClipToBounds="True" CornerRadius="5" Padding="2"> <ScrollViewer Margin="0" x:Name="PART_ContentHost" /> </Border> <ToggleButton Template="{StaticResource IconButton}" Focusable="False" IsChecked="False" Margin="-1,0,0,0" MaxHeight="{TemplateBinding Height}" Width="20" Name="CalendarPopUpButton"> <Image Name="CalendarImage" HorizontalAlignment="Right" Source="Images/Calendar.png" Stretch="Uniform" Visibility="Visible"> </Image> </ToggleButton> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary>
<ecDateBox/>
Template="{StaticResource IconButton}"
<ToggleButton...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)