I am doing something very simple. I am trying to apply a simple style to a DateTimePicker. Basically, if I use the line
CalendarStyle="{StaticResource calendarStyle}", the drop down calendar doesn't show up. If I remove the line, the calendar works as expected. I'm using runtime version v4.0.30319, description is ProgressĀ® TelerikĀ® UI for WPF. Here is the xaml:
<Window x:Class="RadDatePicker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="clr-namespace:RadDatePicker"
Title="MainWindow" Height="350" Width="935">
<Window.Resources>
<Style x:Key="calendarStyle" TargetType="telerik:RadCalendar">
<Setter Property="AreWeekNumbersVisible" Value="True" />
</Style>
</Window.Resources>
<Grid Height="207">
<Border CornerRadius="6" >
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<telerik:RadDatePicker x:Name="datePicker"
InputMode="DatePicker"
DisplayFormat="Short"
DateTimeWatermarkContent="Enter date"
DateSelectionMode="Day"
CalendarStyle="{StaticResource calendarStyle}" />
</StackPanel>
</Border>
</Grid>
</Window>