C# Class FarsiLibrary.WPF.Controls.FXMonthView

Inheritance: System.Windows.Controls.Control
显示文件 Open project: HEskandari/FarsiLibrary Class Usage Examples

Public Properties

Property Type Description
ButtonStyleProperty System.Windows.DependencyProperty
DayContainerStyleProperty System.Windows.DependencyProperty
DayContainerStyleSelectorProperty System.Windows.DependencyProperty
DayTemplateProperty System.Windows.DependencyProperty
DayTemplateSelectorProperty System.Windows.DependencyProperty
HeaderMonthStyleProperty System.Windows.DependencyProperty
HeaderYearStyleProperty System.Windows.DependencyProperty
MaxDateProperty System.Windows.DependencyProperty
MinDateProperty System.Windows.DependencyProperty
PreviewSelectedDateTimeChangedEvent System.Windows.RoutedEvent
PreviewViewDateTimeChangedEvent System.Windows.RoutedEvent
RecreatingViewEvent System.Windows.RoutedEvent
SelectedDateTimeChangedEvent System.Windows.RoutedEvent
SelectedDateTimeProperty System.Windows.DependencyProperty
SelectionModeProperty System.Windows.DependencyProperty
ShowEmptyButtonProperty System.Windows.DependencyProperty
ShowTodayButtonProperty System.Windows.DependencyProperty
ShowWeekDayNamesProperty System.Windows.DependencyProperty
ViewDateTimeChangedEvent System.Windows.RoutedEvent
ViewDateTimeProperty System.Windows.DependencyProperty
ViewPostChangeAnimationProperty System.Windows.DependencyProperty
ViewPreChangeAnimationProperty System.Windows.DependencyProperty
WeekDayHeaderStyleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CreateVisibleDaysCollection CalendarDayCollection
FXMonthView System
InitializeCommandBindings void
InitializeVariables void
OnChangeToNextMonth void
OnChangeToNextYear void
OnChangeToPrevMonth void
OnChangeToPrevYear void
OnSelectEmptyDate void
OnSelectTodayDate void
PostChangeAnimate void
PreChangeAnimate void
RecreateDays void
RefreshDaysTemplate void
UpdateContainerSelection void
UpdateVisualTree void

Public Methods

Method Description
GetCalendarDateByDate ( System.DateTime date ) : FarsiLibrary.WPF.Controls.CalendarDay
GetMonthViewItemFromDate ( System.DateTime date ) : FXMonthViewItem
GetMonthViewItems ( ) : IList
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call .

SetNoneDate ( ) : void
SetTodayDate ( ) : void
ValidateDateRange ( System.DateTime value ) : System.DateTime

Protected Methods

Method Description
CoerceMaxDate ( DependencyObject d, object value ) : object
CoerceSelectedDateTime ( DependencyObject d, object value ) : object
CoerceThemeValue ( DependencyObject d, object newValue ) : object
CoerceViewDateTime ( DependencyObject d, object value ) : object
IsValidDate ( object value ) : bool
OnContainerSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Sync selected value of container control with the SelectedDateTime property.

OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnDayContainerStyleSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDayTemplateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDayTemplateSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMaxDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMaxMinDateChanged ( System.DateTime minDate, System.DateTime maxDate ) : void
OnMinDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectedDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectionModeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectionModeChanged ( SelectionMode mode ) : void
OnViewDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RaisePreviewSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void

Raise PreviewSelectedDateTimeChanged event.

RaisePreviewViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void

Raise PreviewViewDateTimeChanged event.

RaiseSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void

Raise SelectedDateTimeChanged event.

RaiseViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void

Raise ViewDateTimeChanged event.

Private Methods

Method Description
CreateVisibleDaysCollection ( ) : CalendarDayCollection
FXMonthView ( ) : System

Ctor

InitializeCommandBindings ( ) : void
InitializeVariables ( ) : void
OnChangeToNextMonth ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnChangeToNextYear ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnChangeToPrevMonth ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnChangeToPrevYear ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSelectEmptyDate ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSelectTodayDate ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
PostChangeAnimate ( ) : void
PreChangeAnimate ( ) : void
RecreateDays ( ) : void
RefreshDaysTemplate ( ) : void
UpdateContainerSelection ( ) : void
UpdateVisualTree ( ) : void

Method Details

CoerceMaxDate() protected static method

protected static CoerceMaxDate ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

CoerceSelectedDateTime() protected static method

protected static CoerceSelectedDateTime ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

CoerceThemeValue() protected static method

protected static CoerceThemeValue ( DependencyObject d, object newValue ) : object
d System.Windows.DependencyObject
newValue object
return object

CoerceViewDateTime() protected static method

protected static CoerceViewDateTime ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

GetCalendarDateByDate() public method

public GetCalendarDateByDate ( System.DateTime date ) : FarsiLibrary.WPF.Controls.CalendarDay
date System.DateTime
return FarsiLibrary.WPF.Controls.CalendarDay

GetMonthViewItemFromDate() public method

public GetMonthViewItemFromDate ( System.DateTime date ) : FXMonthViewItem
date System.DateTime
return FXMonthViewItem

GetMonthViewItems() public method

public GetMonthViewItems ( ) : IList
return IList

IsValidDate() protected static method

protected static IsValidDate ( object value ) : bool
value object
return bool

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call .
public OnApplyTemplate ( ) : void
return void

OnContainerSelectionChanged() protected method

Sync selected value of container control with the SelectedDateTime property.
protected OnContainerSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object
e System.Windows.Controls.SelectionChangedEventArgs
return void

OnCreateAutomationPeer() protected method

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

OnDayContainerStyleSelectorChanged() protected static method

protected static OnDayContainerStyleSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnDayTemplateChanged() protected static method

protected static OnDayTemplateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnDayTemplateSelectorChanged() protected static method

protected static OnDayTemplateSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnMaxDateChanged() protected static method

protected static OnMaxDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnMaxMinDateChanged() protected method

protected OnMaxMinDateChanged ( System.DateTime minDate, System.DateTime maxDate ) : void
minDate System.DateTime
maxDate System.DateTime
return void

OnMinDateChanged() protected static method

protected static OnMinDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnSelectedDateTimeChanged() protected static method

protected static OnSelectedDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnSelectionModeChanged() protected static method

protected static OnSelectionModeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnSelectionModeChanged() protected method

protected OnSelectionModeChanged ( SelectionMode mode ) : void
mode SelectionMode
return void

OnViewDateTimeChanged() protected static method

protected static OnViewDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

RaisePreviewSelectedDateTimeChanged() protected method

Raise PreviewSelectedDateTimeChanged event.
protected RaisePreviewSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void
e DateSelectionChangedEventArgs
return void

RaisePreviewViewDateTimeChanged() protected method

Raise PreviewViewDateTimeChanged event.
protected RaisePreviewViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs
return void

RaiseSelectedDateTimeChanged() protected method

Raise SelectedDateTimeChanged event.
protected RaiseSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void
e DateSelectionChangedEventArgs
return void

RaiseViewDateTimeChanged() protected method

Raise ViewDateTimeChanged event.
protected RaiseViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs
return void

SetNoneDate() public method

public SetNoneDate ( ) : void
return void

SetTodayDate() public method

public SetTodayDate ( ) : void
return void

ValidateDateRange() public static method

public static ValidateDateRange ( System.DateTime value ) : System.DateTime
value System.DateTime
return System.DateTime

Property Details

ButtonStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows ButtonStyleProperty
return System.Windows.DependencyProperty

DayContainerStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayContainerStyleProperty
return System.Windows.DependencyProperty

DayContainerStyleSelectorProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayContainerStyleSelectorProperty
return System.Windows.DependencyProperty

DayTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayTemplateProperty
return System.Windows.DependencyProperty

DayTemplateSelectorProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayTemplateSelectorProperty
return System.Windows.DependencyProperty

HeaderMonthStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderMonthStyleProperty
return System.Windows.DependencyProperty

HeaderYearStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderYearStyleProperty
return System.Windows.DependencyProperty

MaxDateProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaxDateProperty
return System.Windows.DependencyProperty

MinDateProperty public_oe static_oe property

public static DependencyProperty,System.Windows MinDateProperty
return System.Windows.DependencyProperty

PreviewSelectedDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewSelectedDateTimeChangedEvent
return System.Windows.RoutedEvent

PreviewViewDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewViewDateTimeChangedEvent
return System.Windows.RoutedEvent

RecreatingViewEvent public_oe static_oe property

public static RoutedEvent,System.Windows RecreatingViewEvent
return System.Windows.RoutedEvent

SelectedDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows SelectedDateTimeChangedEvent
return System.Windows.RoutedEvent

SelectedDateTimeProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectedDateTimeProperty
return System.Windows.DependencyProperty

SelectionModeProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectionModeProperty
return System.Windows.DependencyProperty

ShowEmptyButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowEmptyButtonProperty
return System.Windows.DependencyProperty

ShowTodayButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowTodayButtonProperty
return System.Windows.DependencyProperty

ShowWeekDayNamesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowWeekDayNamesProperty
return System.Windows.DependencyProperty

ViewDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows ViewDateTimeChangedEvent
return System.Windows.RoutedEvent

ViewDateTimeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewDateTimeProperty
return System.Windows.DependencyProperty

ViewPostChangeAnimationProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewPostChangeAnimationProperty
return System.Windows.DependencyProperty

ViewPreChangeAnimationProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewPreChangeAnimationProperty
return System.Windows.DependencyProperty

WeekDayHeaderStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows WeekDayHeaderStyleProperty
return System.Windows.DependencyProperty