C# Class AC.AvalonControlsLibrary.Controls.DatePicker

Inheritance: System.Windows.Controls.Control, INotifyPropertyChanged
Show file Open project: kienaiProject/ArtOfWords Class Usage Examples

Public Properties

Property Type Description
CurrentlySelectedDateProperty System.Windows.DependencyProperty
CurrentlySelectedDatesProperty System.Windows.DependencyProperty
DatesSelectionModeProperty System.Windows.DependencyProperty
MaxDateProperty System.Windows.DependencyProperty
MinDateProperty System.Windows.DependencyProperty
SelectedDateChangedEvent System.Windows.RoutedEvent

Public Methods

Method Description
OnApplyTemplate ( ) : void

override to get the templated controls

Protected Methods

Method Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the property changed event

Private Methods

Method Description
BackButtonClick ( object sender, RoutedEventArgs e ) : void
ChangeDate ( ) : void
CurrentlySelectedDatePropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
DatePicker ( ) : System

Static constructor

DatesListSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
ForwardButtonClick ( object sender, RoutedEventArgs e ) : void
GetDateFromCell ( DayCell cell ) : System.DateTime
OnDateChanged ( System.DateTime newDate, System.DateTime oldDate ) : void
ReBindListOfDays ( ) : void

Method Details

OnApplyTemplate() public method

override to get the templated controls
public OnApplyTemplate ( ) : void
return void

OnPropertyChanged() protected method

Raises the property changed event
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The arguments to pass
return void

Property Details

CurrentlySelectedDateProperty public static property

Gets and sets the currently viewed date
public static DependencyProperty,System.Windows CurrentlySelectedDateProperty
return System.Windows.DependencyProperty

CurrentlySelectedDatesProperty public static property

Gets or sets a collection of selected dates This property can only be used if the DatesSelectionMode is not set to Single
public static DependencyProperty,System.Windows CurrentlySelectedDatesProperty
return System.Windows.DependencyProperty

DatesSelectionModeProperty public static property

Gets or sets the selection mode for the DatePicker
public static DependencyProperty,System.Windows DatesSelectionModeProperty
return System.Windows.DependencyProperty

MaxDateProperty public static property

Gets or sets the max date to be set for the DatePicker
public static DependencyProperty,System.Windows MaxDateProperty
return System.Windows.DependencyProperty

MinDateProperty public static property

The Minimum date for the date picker
public static DependencyProperty,System.Windows MinDateProperty
return System.Windows.DependencyProperty

SelectedDateChangedEvent public static property

Event for the DateSelectionChanged raised when the date changes
public static RoutedEvent,System.Windows SelectedDateChangedEvent
return System.Windows.RoutedEvent