This is a migrated thread and some comments may be shown as answers.

Selection date in Blackoutdate Radcalendar

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ShinichiKudo
Top achievements
Rank 1
ShinichiKudo asked on 04 Oct 2014, 02:51 AM
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.....








1 Answer, 1 is accepted

Sort by
0
ShinichiKudo
Top achievements
Rank 1
answered on 06 Oct 2014, 05:25 AM
I'm resovled my Issue. Thanks for review and reading
Tags
General Discussions
Asked by
ShinichiKudo
Top achievements
Rank 1
Answers by
ShinichiKudo
Top achievements
Rank 1
Share this question
or