The Calendar control is used to select and highlight dates.
Simple Calendar creation:
<controls:Calendar></controls:Calendar>
Calendar display mode:
Display mode=Month
<controls:Calendar Name="Calender1" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" VerticalAlignment="Top"></controls:Calendar>
Display mode=Year
<controls:Calendar Name="Calender2" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Year" VerticalAlignment="Top"></controls:Calendar>
Display mode=Decade
<controls:Calendar Name="Calender3" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Decade" VerticalAlignment="Top"></controls:Calendar>
To select multiple dates:
<controls:Calendar Name="Calender4" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" VerticalAlignment="Top" SelectionMode="MultipleRange" ></controls:Calendar>
To change Background color:
<controls:Calendar Name="Calender8" Background="CadetBlue" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" VerticalAlignment="Top"></controls:Calendar>
To change image Background:
<controls:Calendar Name="Calender5" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" DisplayDate="1/1/2011">
<basics:Calendar.Background>
<ImageBrush ImageSource="thumbnailCAKKSCJQ.jpg" Opacity="0.3"/>
</basics:Calendar.Background>
</controls:Calendar>
To change first date of the month:
<controls:Calendar Name="Calender6" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" VerticalAlignment="Top" FirstDayOfWeek="Monday"></controls:Calendar>
To Select date and block out dates of the month:
<controls:Calendar Name="Calender7" HorizontalAlignment="Left" Height="250" Width="250" DisplayMode="Month" VerticalAlignment="Top"></controls:Calendar>
Calender7.SelectedDate = new DateTime(2011,6,15);
Calender7.BlackoutDates.Add(new CalendarDateRange(DateTime.Now, new DateTime(2011, 6, 30)));