Calendar Control Usage

Go to properties, methods and events
Go to screenshot

for all samples
...
xmlns:DevPhone="clr-namespace:DevPhone.Controls;assembly=DevPhone.Controls.Toolkit"
...

Basic without gestures
<DevPhone:CalendarControl />

Basic with gestures
<DevPhone:CalendarControl  GestureDirection="Vertical"/>

Basic with TodayHighlight
<DevPhone:CalendarControl TodayHighlight="Underline" GestureDirection="Horizontal" />

Colors
<DevPhone:CalendarControl TodayHighlight="Underline" GestureDirection="Horizontal" Background="#FF13F5F5" BorderBrush="Yellow" CalendarForeground="Black" WeekBackground="#FFC0C023" WeekBrush="#FF2F52A0" />

Date Mark Colors and Disabled Dates
<DevPhone:CalendarControl Margin="0,0,0,0" x:Name="Calend" ChangeSelectDate="CalendarControlChangeSelectDate" TodayHighlight="Underline" GestureDirection="Horizontal"/>

Code Add
var selcolor = new SolidColorBrush(Colors.Red);
Calend.AddDateColor(DateTime.Now,selcolor,CalendarMarkWidth.Default)
Calend.AddDisabledDate(DateTime.Now.AddDays(1));

Code Remove
Calend.RemoveDateColor(DateTime.Now)
Calend.RemoveDisabledDate(DateTime.Now.AddDays(1));

Code Remove All
Calend.ClearDateColor()
Calend.ClearDisabledDate();


Last edited Jun 3, 2012 at 9:56 PM by FCerqueira, version 3

Comments

No comments yet.