Selection date in Blackoutdate Radcalendar

2 posts, 0 answers
  1. ShinichiKudo
    ShinichiKudo avatar
    8 posts
    Member since:
    Aug 2014

    Posted 03 Oct 2014 Link to this post

    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.....








  2. ShinichiKudo
    ShinichiKudo avatar
    8 posts
    Member since:
    Aug 2014

    Posted 06 Oct 2014 Link to this post

    I'm resovled my Issue. Thanks for review and reading
  3. DevCraft banner
Back to Top