Property | Type | Description | |
---|---|---|---|
CanEditProperty | |||
DateConverterProperty | |||
DropDownButtonStyleProperty | |||
DropDownClosedEvent | System.Windows.RoutedEvent | ||
DropDownOpenedEvent | System.Windows.RoutedEvent | ||
InvalidEntryEvent | System.Windows.RoutedEvent | ||
IsDropDownOpenProperty | |||
IsReadOnlyProperty | |||
IsValidProperty | |||
MaxDateProperty | |||
MinDateProperty | |||
MonthCalendarStyleProperty | |||
NullValueTextProperty | |||
TextProperty | |||
ValueChangedEvent | System.Windows.RoutedEvent | ||
ValueProperty |
Property | Type | Description | |
---|---|---|---|
AttachToVisualTree | void | ||
CoerceIsDropDownOpen | object | ||
CoerceMaxDate | object | ||
CoerceValue | object | ||
DatePicker | System | ||
DetachFromVisualTree | void | ||
DoFormat | string | ||
DoFormat | string | ||
DoParse | bool | ||
GetFlag | bool | ||
IsFocusable | bool | ||
KeyDownHandler | void | ||
KeyDownHandler | void | ||
KeyboardToggleDropDown | void | ||
OnCanEditChanged | void | ||
OnContextMenuClose | void | ||
OnContextMenuOpen | void | ||
OnDateConverterChanged | void | ||
OnDateSelectionChanged | void | ||
OnDropDownButtonStyleChanged | void | ||
OnEditableTextBoxKeyDown | void | ||
OnEditableTextBoxLostFocus | void | ||
OnEditableTextBoxTextChanged | void | ||
OnIsDropDownOpenChanged | void | ||
OnMaxDateChanged | void | ||
OnMinDateChanged | void | ||
OnMonthCalendarCommandPreviewExecuted | void | ||
OnMonthCalendarVisibleMonthChanged | void | ||
OnMouseButtonDown | void | ||
OnNullValueTextChanged | void | ||
OnValueChanged | void | ||
OpenOnLoad | void | ||
RefreshDropDownButtonStyle | void | ||
SelectFocusableDate | void | ||
SetFlag | void | ||
UpdateEditableTextBox | void |
Method | Description | |
---|---|---|
OnApplyTemplate ( ) : void |
Called when the Template's tree has been generated
|
|
ToString ( ) : string |
Returns a string representation for this control. "...DatePicker, Value:06/02/2006"
|
Method | Description | |
---|---|---|
OnDropDownClosed ( |
Raise DropDownClosed event
|
|
OnDropDownOpened ( |
Raise DropDownOpened event
|
|
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void |
Called when this element gets focus.
|
|
OnInvalidEntry ( |
This event is invoked when datepicker can't parse the input string correctly
|
|
OnLostMouseCapture ( System.Windows.Input.MouseEventArgs e ) : void |
Close the dropdown content if DatePicker lost the mouse capture
|
|
OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void |
When datepicker is editable, clicks the entry box should close the datepicker..
|
|
OnValueChanged ( RoutedPropertyChangedEventArgs |
This method is invoked when the Value property changes.
|
Method | Description | |
---|---|---|
AttachToVisualTree ( ) : void |
Detaches the EditableTextBox, MonthCalendar from old child tree and attaches them to a new one
|
|
CoerceIsDropDownOpen ( |
Coerce IsDropDownOpen with IsLoaded, so set IsDropDownOpen to true before UI ready can work
|
|
CoerceMaxDate ( |
||
CoerceValue ( |
||
DatePicker ( ) : System |
Static Constructor
|
|
DetachFromVisualTree ( ) : void |
Clear the event, and detach our current EditableTextBox from ComboBox
|
|
DoFormat ( ) : string |
Format Value property to a formatted string
|
|
DoFormat ( System.DateTime date ) : string | ||
DoParse ( string text ) : bool |
Parse the input string, if the input string is a valid date, return the Date, else return null If the input entry equals NullValueText, Value will be set to null If the input entry is a valid date, Value will be set to the input date If the input entry isn't a valid date, InvalidEntry event will be fired, Value will still keep the old value (don't set to null) |
|
GetFlag ( |
||
IsFocusable ( |
True if the element can be focused
|
|
KeyDownHandler ( System.Windows.Input.KeyEventArgs e ) : void | ||
KeyDownHandler ( object sender, System.Windows.Input.KeyEventArgs e ) : void |
Called when a key event occurs.
|
|
KeyboardToggleDropDown ( bool openDropDown, bool commitSelection ) : void |
Close the dropdown and commit the selection if requested. Make sure to set the selection after the dropdown has closed Don't trigger any unnecessary navigation as a result of changing the selection.
|
|
OnCanEditChanged ( |
||
OnContextMenuClose ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void | ||
OnContextMenuOpen ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void | ||
OnDateConverterChanged ( |
||
OnDateSelectionChanged ( object sender, |
||
OnDropDownButtonStyleChanged ( |
||
OnEditableTextBoxKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void |
If Key.Enter is pressed, DatePicker will parse the Text no matter it changed or not
|
|
OnEditableTextBoxLostFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void |
If EditableTextBoxSite loses focus and Text has been changed, DatePicker will parse Text
|
|
OnEditableTextBoxTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void |
If Text has been changed, the flag Flags.IsTextChanged will be set to true, so DatePicker can decide to parse the Text or not
|
|
OnIsDropDownOpenChanged ( |
||
OnMaxDateChanged ( |
||
OnMinDateChanged ( |
||
OnMonthCalendarCommandPreviewExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void | ||
OnMonthCalendarVisibleMonthChanged ( object sender, RoutedPropertyChangedEventArgs |
||
OnMouseButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void |
If we (or one of our children) are clicked, claim the focus
|
|
OnNullValueTextChanged ( |
||
OnValueChanged ( |
||
OpenOnLoad ( object sender, |
||
RefreshDropDownButtonStyle ( ) : void | ||
SelectFocusableDate ( ) : void |
Select the focusable date
|
|
SetFlag ( |
||
UpdateEditableTextBox ( string text ) : void |
Update the Text to the TextBox in editable mode
|
protected OnDropDownClosed ( |
||
e | ||
return | void |
protected OnDropDownOpened ( |
||
e | ||
return | void |
protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void | ||
e | System.Windows.Input.KeyboardFocusChangedEventArgs | |
return | void |
protected OnInvalidEntry ( |
||
e | ||
return | void |
protected OnLostMouseCapture ( System.Windows.Input.MouseEventArgs e ) : void | ||
e | System.Windows.Input.MouseEventArgs | |
return | void |
protected OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
protected OnValueChanged ( RoutedPropertyChangedEventArgs |
||
e | RoutedPropertyChangedEventArgs |
RoutedPropertyChangedEventArgs contains the old and new value. |
return | void |
public static DependencyProperty,System.Windows CanEditProperty | ||
return |
public static DependencyProperty,System.Windows DateConverterProperty | ||
return |
public static DependencyProperty,System.Windows DropDownButtonStyleProperty | ||
return |
public static RoutedEvent,System.Windows DropDownClosedEvent | ||
return | System.Windows.RoutedEvent |
public static RoutedEvent,System.Windows DropDownOpenedEvent | ||
return | System.Windows.RoutedEvent |
public static RoutedEvent,System.Windows InvalidEntryEvent | ||
return | System.Windows.RoutedEvent |
public static DependencyProperty,System.Windows IsDropDownOpenProperty | ||
return |
public static DependencyProperty,System.Windows IsReadOnlyProperty | ||
return |
public static DependencyProperty,System.Windows IsValidProperty | ||
return |
public static DependencyProperty,System.Windows MaxDateProperty | ||
return |
public static DependencyProperty,System.Windows MinDateProperty | ||
return |
public static DependencyProperty,System.Windows MonthCalendarStyleProperty | ||
return |
public static DependencyProperty,System.Windows NullValueTextProperty | ||
return |
public static DependencyProperty,System.Windows TextProperty | ||
return |
public static RoutedEvent,System.Windows ValueChangedEvent | ||
return | System.Windows.RoutedEvent |