Hi all,
My english is not so good hope you sympathize :)
At the Interface, I want to select date of blackout date of Radcalendar.
Example:
- Style:
<functions:DayButtonStyleSelector x:Key="SpecialDayStyle">
<functions:DayButtonStyleSelector.SpecialDayStyle>
<Style TargetType="{x:Type Calendar:CalendarButton}" BasedOn="{StaticResource CalendarButtonStyle}">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="{Binding Text}" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="IsEnabled" Value="True"/>
</Style>
</functions:DayButtonStyleSelector.SpecialDayStyle>
- XAML:
telerik:RadCalendar Name="HolidayCalendar"
AreWeekNumbersVisible="False"
IsTodayHighlighted="False"
BlackoutDates="{Binding ModelData.ListHolidayDate}"
DisplayDate="{Binding ModelData.DisplayDate,Mode=TwoWay}"
DayButtonStyleSelector="{StaticResource SpecialDayStyle}" DayButtonStyle="{x:Null}"/>
- .CS: ModelData.ListHolidayDate is ObservableCollection<Date>
Please help me, choose or select date in ModelData.ListHolidayDate.
Thanks all.....
My english is not so good hope you sympathize :)
At the Interface, I want to select date of blackout date of Radcalendar.
Example:
- Style:
<functions:DayButtonStyleSelector x:Key="SpecialDayStyle">
<functions:DayButtonStyleSelector.SpecialDayStyle>
<Style TargetType="{x:Type Calendar:CalendarButton}" BasedOn="{StaticResource CalendarButtonStyle}">
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="{Binding Text}" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="IsEnabled" Value="True"/>
</Style>
</functions:DayButtonStyleSelector.SpecialDayStyle>
- XAML:
telerik:RadCalendar Name="HolidayCalendar"
AreWeekNumbersVisible="False"
IsTodayHighlighted="False"
BlackoutDates="{Binding ModelData.ListHolidayDate}"
DisplayDate="{Binding ModelData.DisplayDate,Mode=TwoWay}"
DayButtonStyleSelector="{StaticResource SpecialDayStyle}" DayButtonStyle="{x:Null}"/>
- .CS: ModelData.ListHolidayDate is ObservableCollection<Date>
Please help me, choose or select date in ModelData.ListHolidayDate.
Thanks all.....