C# Class Microsoft.Samples.KMoore.WPFSamples.DateControls.CalendarDate

CalendarDate is a wrapper over DateTime
The main purpose of CalendarDate is to increase the MonthCalendar's scroll perf. It is used to only update Date object and fire a PropertyChanged event, so when user scroll month, the selectedDates UI items won't be regenerated
Inheritance: INotifyPropertyChanged
显示文件 Open project: daszat/zetbox Class Usage Examples

Public Methods

Method Description
CalendarDate ( System.DateTime date ) : System

Constructor

ToString ( ) : string

Return string representation of this selectedDate

Private Methods

Method Description
InternalUpdate ( CalendarDate cdate ) : void

Update Date and IsValid property

IsDateToday ( System.DateTime date ) : bool
IsDateWeekend ( System.DateTime date ) : bool
OnPropertyChanged ( String info ) : void

Method Details

CalendarDate() public method

Constructor
public CalendarDate ( System.DateTime date ) : System
date System.DateTime
return System

ToString() public method

Return string representation of this selectedDate
public ToString ( ) : string
return string