C# Class FarsiLibrary.WPF.Controls.FXMonthView

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: HEskandari/FarsiLibrary Class Usage Examples

Méthodes publiques

Свойство 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

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected static CoerceMaxDate ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

CoerceSelectedDateTime() protected static méthode

protected static CoerceSelectedDateTime ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

CoerceThemeValue() protected static méthode

protected static CoerceThemeValue ( DependencyObject d, object newValue ) : object
d System.Windows.DependencyObject
newValue object
Résultat object

CoerceViewDateTime() protected static méthode

protected static CoerceViewDateTime ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

GetCalendarDateByDate() public méthode

public GetCalendarDateByDate ( System.DateTime date ) : FarsiLibrary.WPF.Controls.CalendarDay
date System.DateTime
Résultat FarsiLibrary.WPF.Controls.CalendarDay

GetMonthViewItemFromDate() public méthode

public GetMonthViewItemFromDate ( System.DateTime date ) : FXMonthViewItem
date System.DateTime
Résultat FXMonthViewItem

GetMonthViewItems() public méthode

public GetMonthViewItems ( ) : IList
Résultat IList

IsValidDate() protected static méthode

protected static IsValidDate ( object value ) : bool
value object
Résultat bool

OnApplyTemplate() public méthode

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

OnContainerSelectionChanged() protected méthode

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
Résultat void

OnCreateAutomationPeer() protected méthode

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
Résultat System.Windows.Automation.Peers.AutomationPeer

OnDayContainerStyleSelectorChanged() protected static méthode

protected static OnDayContainerStyleSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnDayTemplateChanged() protected static méthode

protected static OnDayTemplateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnDayTemplateSelectorChanged() protected static méthode

protected static OnDayTemplateSelectorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnMaxDateChanged() protected static méthode

protected static OnMaxDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnMaxMinDateChanged() protected méthode

protected OnMaxMinDateChanged ( System.DateTime minDate, System.DateTime maxDate ) : void
minDate System.DateTime
maxDate System.DateTime
Résultat void

OnMinDateChanged() protected static méthode

protected static OnMinDateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnSelectedDateTimeChanged() protected static méthode

protected static OnSelectedDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnSelectionModeChanged() protected static méthode

protected static OnSelectionModeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnSelectionModeChanged() protected méthode

protected OnSelectionModeChanged ( SelectionMode mode ) : void
mode SelectionMode
Résultat void

OnViewDateTimeChanged() protected static méthode

protected static OnViewDateTimeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

RaisePreviewSelectedDateTimeChanged() protected méthode

Raise PreviewSelectedDateTimeChanged event.
protected RaisePreviewSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void
e DateSelectionChangedEventArgs
Résultat void

RaisePreviewViewDateTimeChanged() protected méthode

Raise PreviewViewDateTimeChanged event.
protected RaisePreviewViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs
Résultat void

RaiseSelectedDateTimeChanged() protected méthode

Raise SelectedDateTimeChanged event.
protected RaiseSelectedDateTimeChanged ( DateSelectionChangedEventArgs e ) : void
e DateSelectionChangedEventArgs
Résultat void

RaiseViewDateTimeChanged() protected méthode

Raise ViewDateTimeChanged event.
protected RaiseViewDateTimeChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs
Résultat void

SetNoneDate() public méthode

public SetNoneDate ( ) : void
Résultat void

SetTodayDate() public méthode

public SetTodayDate ( ) : void
Résultat void

ValidateDateRange() public static méthode

public static ValidateDateRange ( System.DateTime value ) : System.DateTime
value System.DateTime
Résultat System.DateTime

Property Details

ButtonStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows ButtonStyleProperty
Résultat System.Windows.DependencyProperty

DayContainerStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayContainerStyleProperty
Résultat System.Windows.DependencyProperty

DayContainerStyleSelectorProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayContainerStyleSelectorProperty
Résultat System.Windows.DependencyProperty

DayTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayTemplateProperty
Résultat System.Windows.DependencyProperty

DayTemplateSelectorProperty public_oe static_oe property

public static DependencyProperty,System.Windows DayTemplateSelectorProperty
Résultat System.Windows.DependencyProperty

HeaderMonthStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderMonthStyleProperty
Résultat System.Windows.DependencyProperty

HeaderYearStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderYearStyleProperty
Résultat System.Windows.DependencyProperty

MaxDateProperty public_oe static_oe property

public static DependencyProperty,System.Windows MaxDateProperty
Résultat System.Windows.DependencyProperty

MinDateProperty public_oe static_oe property

public static DependencyProperty,System.Windows MinDateProperty
Résultat System.Windows.DependencyProperty

PreviewSelectedDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewSelectedDateTimeChangedEvent
Résultat System.Windows.RoutedEvent

PreviewViewDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows PreviewViewDateTimeChangedEvent
Résultat System.Windows.RoutedEvent

RecreatingViewEvent public_oe static_oe property

public static RoutedEvent,System.Windows RecreatingViewEvent
Résultat System.Windows.RoutedEvent

SelectedDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows SelectedDateTimeChangedEvent
Résultat System.Windows.RoutedEvent

SelectedDateTimeProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectedDateTimeProperty
Résultat System.Windows.DependencyProperty

SelectionModeProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectionModeProperty
Résultat System.Windows.DependencyProperty

ShowEmptyButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowEmptyButtonProperty
Résultat System.Windows.DependencyProperty

ShowTodayButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowTodayButtonProperty
Résultat System.Windows.DependencyProperty

ShowWeekDayNamesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowWeekDayNamesProperty
Résultat System.Windows.DependencyProperty

ViewDateTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows ViewDateTimeChangedEvent
Résultat System.Windows.RoutedEvent

ViewDateTimeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewDateTimeProperty
Résultat System.Windows.DependencyProperty

ViewPostChangeAnimationProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewPostChangeAnimationProperty
Résultat System.Windows.DependencyProperty

ViewPreChangeAnimationProperty public_oe static_oe property

public static DependencyProperty,System.Windows ViewPreChangeAnimationProperty
Résultat System.Windows.DependencyProperty

WeekDayHeaderStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows WeekDayHeaderStyleProperty
Résultat System.Windows.DependencyProperty