Calendar Control Documentation

Screenshot
Usage

Properties

Culture
Type: string. 
Description : Gets or sets the culture of calendar.
Default value : null, current culture UI-thread.

CurrentDate
Type: DateTime?. 
Description : Gets or sets the initial date.
Default value : null, today date.

CalendarBorderBrush
Type: Brush
Description : Gets or sets the border color control.
Default value : PhoneForegroundBrush resource.

CalendarBackground
Type: Brush
Description : Gets or sets the background control.
Default value : Transparent color.

CalendarForeground
Type: Brush
Description : Gets or sets the foreground control.
Default value : PhoneForegroundBrush resource.

CurrentDateBrush
Type: Brush
Description : Gets or sets the brush from initial date.
Default value : PhoneAccentBrush resource.

TodayBrush
Type: Brush
Description : Gets or sets the brush from Today.
Default value : PhoneContrastBackgroundBrush resource.

WeekBrush
Type: Brush
Description : Gets or sets the brush from week name.
Default value : White.

WeekBackground
Type: Brush
Description : Gets or sets the background brush  from week name.
Default value : Gray.

DisabledBrush
Type: Brush
Description : Gets or sets the background brush  from week name.
Default value : PhoneDisabledBrush resource.

MarkPosition
Type: enum CalendarPositionMark.
Description : Gets or sets the mark position from day.
Default value : CalendarPositionMark.TopRight.

enum CalendarPositionMark:

  • TopRight
  • TopLeft
  • BottomRight
  • BottomLeft

MarkWidth
Type: enum CalendarMarkWidth.
Description : Gets or sets the default mark width from day.
Default value : CalendarMarkWidth.Default (small).

enum CalendarMarkWidth:

  • Default
  • Large
  • Medium
  • Small

GestureDirection
Type: enum CalendarGestureDirection.
Description : Gets or sets the gesture direction.
Default value : CalendarGestureDirection.None.

enum CalendarGestureDirection:

  • None
  • Vertical
  • Horizontal

EnabledTapShowMonth
Type: bool.
Description : Gets or sets the enabled tap show months.
Default value : true.

EnabledTapShowYear
Type: bool.
Description : Gets or sets the enabled tap show years.
Default value : true.

MaxDate
Type: DateTime?
Description : Gets or sets the maximum value of ranger date.
Default value : null.

MinDate
Type: DateTime?
Description : Gets or sets the minimum value of ranger date.
Default value : null.

ShowLinkToday
Type: bool.
Description : Gets or sets the show text today.
Default value : true.

TodayHighlight
Type: enum CalendarHighlightToday.
Description : Gets or sets the highlight style from today.
Default value : CalendarHighlightToday.None.

enum CalendarHighlightToday:

  • None
  • Underline
  • Border
  • Background
  • MarkDate

LoopRangeMinMax
Type: bool.
Description : Gets or sets the loop range between minimum and maximum.
Default value : true.

TitleSelectMonth
Type: string.
Description : Gets or sets the title text from months view.
Default value : Months.

TitleSelectYear
Type: string.
Description : Gets or sets the title text from years view.
Default value : Years.

TitleGoDay
Type: string.
Description : Gets or sets the title text from go days view.
Default value : Days.

TitleGoMonth
Type: string.
Description : Gets or sets the title text from go months view.
Default value : Months.

TitleGoYear
Type: string.
Description : Gets or sets the title text from go years view.
Default value : Years.

TitleToday
Type: string.
Description : Gets or sets the title text from today link.
Default value : Today.

TitleNext
Type: string.
Description : Gets or sets the title text from next months or years link.
Default value : Next.

TitlePrev
Type: string.
Description : Gets or sets the title text from previous months or years  link.
Default value : Prev.

Events

ChangeSelectDate
Type : EventHandler<CalendarChangeSelectDateEventArgs>
Description: Trigger when date is selected.

CalendarChangeSelectDateEventArgs
Date
Type: DateTime
Description : Gets value selected date.

ChangeCalendar
Type : EventHandler<CalendarChangeEventArgs>
Description: Trigger when change calendar view mode.

CalendarChangeEventArgs
OldMonth
Type: int
Description : Gets value old month.

OldYear
Type: int
Description : Gets value old year

Month
Type: int
Description : Gets or set value new month reference.

Year
Type: int
Description : Gets or set value new year reference.

ExportMethods
Type : EventHandler<ExportInterfaceEventArgs<ICalendarControlMethods>>
Description: Trigger when control loaded and first render.
Remark : Export all methods for use MVVM pattern

ICalendarControlMethods:

    void AddDateColor(DateTime value, Brush color);
    void AddDateColor(DateTime value, Brush color, CalendarMarkWidth width);
    void RemoveDateColor(DateTime value);
    void ClearDateColor();
    CalendarColorDay[] ColorDays();
    void ChangeDate(DateTime value);
    void AddDisabledDate(DateTime value);
    void RemoveDisabledDate(DateTime value);
    void ClearDisabledDate();       
    DateTime[] DisabledDates();

Methods

AddDateColor
Type: void
DescriptionAdd mark date with color.
Parameters:
    Value : Datetime.  Date to mark;
    Color : Brush. Mark color, if null take  CalendarBorderBrush property value.
    Width : enum CalendarMarkWidth. Mark width. if null take  MarkWidth property value.

RemoveDateColor
Type: void
Description : remove mark date color.
Parameters:
    Value : Datetime.  Date to remove;

ClearDateColor
Type: void
Description : remove all mark date color.

ColorDays
Type: CalendarColorDay[]
Description : return array with all mark date color.

ChangeDate
Type: void
Description : change CurrentDate/SelectedDate.
Parameters:
    Value : Datetime.  new Date;

AddDisabledDate
Type: void
Description : add disabled date.
Parameters:
    Value : Datetime.  Date to disabled.

RemoveDisabledDate
Type: void
Description : remove disabled date.
Parameters:
    Value : Datetime.  Date to remove.

ClearDisabledDate
Type: void
Description : remove all disabled date.

DisabledDates
Type: DateTime[]
Description : return array with all disabled date.

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

Comments

No comments yet.