JElster
asked on
WPF How to style the DateTimePicker
I'm using the DateTimePicker from the WPFTool kit. How Can I style it? Need to change the Month background and font
This what I have so far... thx
<!-- DatePicker -->
<Style x:Key="DatePickerStyle" TargetType="{x:Type my:DatePicker}">
<Setter Property="Foreground" Value="#FF333333" />
<Setter Property="IsTodayHighlight ed" Value="True" />
<Setter Property="SelectedDateForm at" Value="Short" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Padding" Value="3,2,0,2"/>
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush StartPoint="0 0" EndPoint="0 1">
<GradientStop Offset="0" Color="#FFFFC0" />
<GradientStop Offset="0.5" Color="#FFE0B0" />
<GradientStop Offset="1" Color="#FFD0A8" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
This what I have so far... thx
<!-- DatePicker -->
<Style x:Key="DatePickerStyle" TargetType="{x:Type my:DatePicker}">
<Setter Property="Foreground" Value="#FF333333" />
<Setter Property="IsTodayHighlight
<Setter Property="SelectedDateForm
<Setter Property="Background" Value="Transparent" />
<Setter Property="Padding" Value="3,2,0,2"/>
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush StartPoint="0 0" EndPoint="0 1">
<GradientStop Offset="0" Color="#FFFFC0" />
<GradientStop Offset="0.5" Color="#FFE0B0" />
<GradientStop Offset="1" Color="#FFD0A8" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
These examples don't use a datepicker they show the calendar.
thx