Property | Type | Description | |
---|---|---|---|
DataSourceDatePathProperty | |||
DataSourceDateXPathProperty | |||
DataSourceProperty | |||
DateSelectionChangedEvent | System.Windows.RoutedEvent | ||
DayContainerStyleProperty | |||
DayContainerStyleSelectorProperty | |||
DayHeaderStyleProperty | |||
DayTemplateProperty | |||
DayTemplateSelectorProperty | |||
FirstDayOfWeekProperty | |||
MaxDateProperty | |||
MaxSelectionCountProperty | |||
MinDateProperty | |||
NextButtonStyleProperty | |||
PreviousButtonStyleProperty | |||
SelectedDateProperty | |||
ShowsDayHeadersProperty | |||
ShowsTitleProperty | |||
ShowsWeekNumbersProperty | |||
TitleStyleProperty | |||
VisibleMonthChangedEvent | System.Windows.RoutedEvent | ||
VisibleMonthProperty | |||
WeekNumberStyleProperty |
Method | Description | |
---|---|---|
GetContainerFromDate ( System.DateTime date ) : |
Return the UI element corresponding to the given date. Returns null if the date does not belong to the visible days or if no UI has been generated for it.
|
|
OnApplyTemplate ( ) : void |
Called when the Template's tree has been generated
|
|
ToString ( ) : string |
Returns a string representation for this control.
|
Method | Description | |
---|---|---|
OnDateSelectionChanged ( |
Raise DateSelectionChanged event.
|
|
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void |
This is the method that responds to the PreviewKeyDown event. Override OnPreviewKeyDown isn't recommended for Control Author, it's reserved for customer Because MonthCalenarContainer already handles the PageUp/PageDown/Home/End, we have to use Preview here. |
|
OnVisibleMonthChanged ( RoutedPropertyChangedEventArgs |
Raise VisibleMonthChanged event.
|
Method | Description | |
---|---|---|
AddToDictionary ( object value ) : void |
Add value to data source dictionary
|
|
AttachToVisualTree ( ) : void |
Walk to visual tree to find the MonthCalendarContainer. Set the GroupFactory and GroupPanel. Register the selection change event if it is a Selector.
|
|
CoerceMaxDate ( |
||
CoerceVisibleMonth ( |
||
CreateVisibleDaysCollection ( System.DateTime firstDate, System.DateTime lastDate, DayOfWeek firstDayOfWeek ) : ObservableCollection |
Generate the visible days collection based on the input firstdate, lastdate and firstdayofweek
|
|
DetachFromVisualTree ( ) : void |
Clear our layout-specific data, and detach our current itemscontrol from monthcalendar
|
|
FindFocusableDate ( System.DateTime start, System.DateTime end, bool direction ) : DateTime? |
|
|
GetCalendarDateByDate ( System.DateTime date ) : |
Get the CalendarDate by date
|
|
GetFlag ( |
||
GetKeyFromDataSourceItem ( object value ) : DateTime? |
Get the DateTime value from the value with DataSourceDatePath/XPath the value works as a key for data source dictionary
|
|
IWeakEventListener ( |
Handle events from the centralized event table
|
|
InvalidateVisibleDays ( int scrollChange ) : void |
Invalidate the visible days when switch month
|
|
InvokeDateSelectedChangedEvent ( List |
Raise the SelectionChanged event.
|
|
IsFocusable ( |
True if the element can be focused
|
|
IsLeadingTrailingDay ( System.DateTime date ) : bool |
True if the date is leading or traing day
|
|
IsValidDate ( object value ) : bool |
Validate input value in MonthCalendar (MinDate, MaxDate, VisibleMonth)
|
|
IsValidFirstDayOfWeek ( object value ) : bool | ||
IsValidMaxSelectionCount ( object o ) : bool | ||
IsValidNullableDate ( object value ) : bool |
Validate input value in MonthCalendar
|
|
MonthCalendar ( ) : System |
Static Constructor
|
|
OnContainerLayoutUpdated ( object sender, |
Update the SelectedDates to UI if those dates are added before UI ready
|
|
OnContainerSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void |
Update the selected dates status when user changes it by UI
|
|
OnDataSourceChanged ( |
||
OnDataSourceCollectionChanged ( object sender, |
Update the CalendarDate.Data property when DataSource collection is changed
|
|
OnDataSourceDatePathChanged ( |
||
OnDayContainerStyleChanged ( |
Called when DayContainerStyleProperty is invalidated on "d."
|
|
OnDayTemplateChanged ( |
Called when DayTemplateProperty is invalidated on "d."
|
|
OnDayTemplateSelectorChanged ( |
Called when DayTemplateSelectorProperty is invalidated on "d."
|
|
OnExecuteGotoCommand ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void | ||
OnExecuteNextCommand ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void | ||
OnExecutePreviousCommand ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void | ||
OnFirstDayOfWeekChanged ( |
||
OnMaxDateChanged ( |
||
OnMaxMinDateChanged ( System.DateTime minDate, System.DateTime maxDate ) : void |
Update the IsSelectable property of visible days and selected dates when max/min date has been changed
|
|
OnMaxSelectionCountChanged ( |
||
OnMinDateChanged ( |
||
OnNextButtonStyleChanged ( |
||
OnPreviousButtonStyleChanged ( |
||
OnQueryGotoCommand ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void | ||
OnQueryNextCommand ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void | ||
OnQueryPreviousCommand ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void | ||
OnSelectedDateChanged ( |
||
OnSelectedDatesCollectionChanged ( object sender, |
Handle SelectedDates collection changed event
|
|
OnVisibleMonthChanged ( |
||
RefreshDayTemplate ( ) : void |
Refresh the ItemTemplate/ItemTemplateSelector/ItemContainerStyle if DayTemplate/DayTemplateSelecotr/DayContainerStyle is set
|
|
RefreshNextButtonStyle ( ) : void | ||
RefreshPreviousButtonStyle ( ) : void | ||
RemoveFromDictionary ( object value ) : void |
Remove value from data source dictionary
|
|
RestoreSelection ( int scrollChange ) : void |
Restore the selection UI after switching month
|
|
ScrollVisibleMonth ( int direction, int delta ) : void |
Scroll the current visible month of MothCalendar based on delta and direction
|
|
SetFlag ( |
||
SetSelectionByRange ( System.DateTime start, System.DateTime end ) : void |
Select the dates between start and end. If one of them is null, only select the other one
|
|
TrimSelectedDates ( int limit ) : void |
Delete redundant selected dates to fit the new MaxSelectionCount value
|
|
UpdateDataSource ( ) : void | ||
UpdateDataSourceToCalendarDates ( ) : void |
Update the data source data to the specific calendar dates
|
public GetContainerFromDate ( System.DateTime date ) : |
||
date | System.DateTime | |
return |
protected OnDateSelectionChanged ( |
||
e | ||
return | void |
protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | Event Arguments |
return | void |
protected OnVisibleMonthChanged ( RoutedPropertyChangedEventArgs |
||
e | RoutedPropertyChangedEventArgs |
RoutedPropertyChangedEventArgs contains the old and new value. |
return | void |
public static DependencyProperty,System.Windows DataSourceDatePathProperty | ||
return |
public static DependencyProperty,System.Windows DataSourceDateXPathProperty | ||
return |
public static DependencyProperty,System.Windows DataSourceProperty | ||
return |
public static RoutedEvent,System.Windows DateSelectionChangedEvent | ||
return | System.Windows.RoutedEvent |
public static DependencyProperty,System.Windows DayContainerStyleProperty | ||
return |
public static DependencyProperty,System.Windows DayContainerStyleSelectorProperty | ||
return |
public static DependencyProperty,System.Windows DayHeaderStyleProperty | ||
return |
public static DependencyProperty,System.Windows DayTemplateProperty | ||
return |
public static DependencyProperty,System.Windows DayTemplateSelectorProperty | ||
return |
public static DependencyProperty,System.Windows FirstDayOfWeekProperty | ||
return |
public static DependencyProperty,System.Windows MaxDateProperty | ||
return |
public static DependencyProperty,System.Windows MaxSelectionCountProperty | ||
return |
public static DependencyProperty,System.Windows MinDateProperty | ||
return |
public static DependencyProperty,System.Windows NextButtonStyleProperty | ||
return |
public static DependencyProperty,System.Windows PreviousButtonStyleProperty | ||
return |
public static DependencyProperty,System.Windows SelectedDateProperty | ||
return |
public static DependencyProperty,System.Windows ShowsDayHeadersProperty | ||
return |
public static DependencyProperty,System.Windows ShowsTitleProperty | ||
return |
public static DependencyProperty,System.Windows ShowsWeekNumbersProperty | ||
return |
public static DependencyProperty,System.Windows TitleStyleProperty | ||
return |
public static RoutedEvent,System.Windows VisibleMonthChangedEvent | ||
return | System.Windows.RoutedEvent |
public static DependencyProperty,System.Windows VisibleMonthProperty | ||
return |