Class DateTimeEdit
DateTimeEdit
Implements
Inherited Members
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2007SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2003Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/SyncOrangeStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/ShinyRedStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/ShinyBlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(DateTimeEdit), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/DateTimeEdit/Themes/Generic.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/VS2010Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/MetroStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/TransparentStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2013, Type = typeof(DateTimeEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/DateTimeEdit/Themes/Office2013Style.xaml")]
public class DateTimeEdit : DateTimeBase, IDisposableConstructors
DateTimeEdit()
Initializes a new instance of the DateTimeEdit class.
Declaration
public DateTimeEdit()Fields
AbbreviatedMonthNamesProperty
Declaration
public static readonly DependencyProperty AbbreviatedMonthNamesPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
AllowEnterProperty
Declaration
public static readonly DependencyProperty AllowEnterPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
AutoForwardingProperty
Using a DependencyProperty as the backing store for AutoForwarding. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AutoForwardingPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
CalendarStyleProperty
Using a DependencyProperty as the backing store for CalendarStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CalendarStylePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
ClockProperty
Declaration
public static readonly DependencyProperty ClockPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
CloseCalendarActionProperty
Declaration
public static readonly DependencyProperty CloseCalendarActionPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
DateTimeCalenderProperty
Declaration
public static readonly DependencyProperty DateTimeCalenderPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
DateTimeProperty
Using a DependencyProperty as the backing store for DateTime. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DateTimePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
DefaultDatePartProperty
Using a DependencyProperty as the backing store for DefaultDatePart. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DefaultDatePartPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
DisableDateSelectionProperty
Using a DependencyProperty as the backing store for DisableDateSelection. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DisableDateSelectionPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
DropDownViewProperty
Using a DependencyProperty as the backing store for DropDownView. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DropDownViewPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
EnableAlphaKeyNavigationProperty
Using a DependencyProperty as the backing store for EnableAlphaKeyNavigation. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableAlphaKeyNavigationPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
EnableBackspaceKeyProperty
Declaration
public static readonly DependencyProperty EnableBackspaceKeyPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
EnableClassicStyleProperty
Using a DependencyProperty as the backing store for EnableClassicStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableClassicStylePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
EnableDeleteKeyProperty
Declaration
public static readonly DependencyProperty EnableDeleteKeyPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
FocusedBorderBrushProperty
Using a DependencyProperty as the backing store for FocusedBorderBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FocusedBorderBrushPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
FreezeClockOnEditProperty
Using a DependencyProperty as the backing store for FreezeClockOnEdit. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FreezeClockOnEditPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
IsNullProperty
Using a DependencyProperty as the backing store for IsNull. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsNullPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
lp
Declaration
public bool lpField Value
| Type | 
|---|
| System.Boolean | 
lp1
Declaration
public bool lp1Field Value
| Type | 
|---|
| System.Boolean | 
MaxDateTimeProperty
Using a DependencyProperty as the backing store for MaxDateTime. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MaxDateTimePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
MinDateTimeProperty
Using a DependencyProperty as the backing store for MinDateTime. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MinDateTimePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
NullValueProperty
Using a DependencyProperty as the backing store for NullValue. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty NullValuePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
OnFocusBehaviorProperty
Declaration
public static readonly DependencyProperty OnFocusBehaviorPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
ShortestDayNamesProperty
Declaration
public static readonly DependencyProperty ShortestDayNamesPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
ShowMaskOnNullValueProperty
Declaration
public static readonly DependencyProperty ShowMaskOnNullValuePropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
TimeStepIntervalProperty
Declaration
public static readonly DependencyProperty TimeStepIntervalPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
TodayButtonActionProperty
Using a DependencyProperty as the backing store for TodayButtonAction. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TodayButtonActionPropertyField Value
| Type | 
|---|
| System.Windows.DependencyProperty | 
Properties
AbbreviatedMonthNames
Get or Set AbbreviatedMonthNames for Calendar
Declaration
public string[] AbbreviatedMonthNames { get; set; }Property Value
| Type | 
|---|
| System.String[] | 
AllowEnter
Set or Get AllowEnter
Declaration
[Obsolete("AllowEnter property is deprecated, use F4 or Alt + Down or click dropdown button to open popup")]
public bool AllowEnter { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
AutoForwarding
Declaration
public bool AutoForwarding { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
CalendarStyle
Gets or sets the calendar style.
Declaration
[Obsolete("This property is Deprecated, please use the Implicity style.")]
public Style CalendarStyle { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Windows.Style | The calendar style. | 
Clock
Declaration
public FrameworkElement Clock { get; set; }Property Value
| Type | 
|---|
| System.Windows.FrameworkElement | 
CloseCalendarAction
Declaration
public CloseCalendarAction CloseCalendarAction { get; set; }Property Value
| Type | 
|---|
| CloseCalendarAction | 
DateTime
Get or Set DateTime
Declaration
public DateTime? DateTime { get; set; }Property Value
| Type | 
|---|
| System.Nullable<System.DateTime> | 
DateTimeCalender
Declaration
public FrameworkElement DateTimeCalender { get; set; }Property Value
| Type | 
|---|
| System.Windows.FrameworkElement | 
DefaultDatePart
Gets or sets the default date part.
Declaration
public DateParts DefaultDatePart { get; set; }Property Value
| Type | Description | 
|---|---|
| DateParts | The default date part. | 
DisableDateSelection
Get or Set DisableDateSelection
Declaration
public bool DisableDateSelection { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
DropDownView
Gets or sets the drop down view.
Declaration
public DropDownViews DropDownView { get; set; }Property Value
| Type | Description | 
|---|---|
| DropDownViews | The drop down view. | 
EnableAlphaKeyNavigation
Get and Set Boolean Value to Enable/Disable Alpha keys which are used to Navigate Months when CanEdit set to False
Declaration
public bool EnableAlphaKeyNavigation { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
EnableBackspaceKey
Gets or sets a value indicating whether to enable backspace key
Declaration
public bool EnableBackspaceKey { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
EnableClassicStyle
Gets or sets a value indicating whether [enable classic style].
Declaration
public bool EnableClassicStyle { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
EnableDeleteKey
Gets or sets a value indicating whether to enable delete key
Declaration
public bool EnableDeleteKey { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
FocusedBorderBrush
Get or Set FocusedBorderBrush
Declaration
public Brush FocusedBorderBrush { get; set; }Property Value
| Type | 
|---|
| System.Windows.Media.Brush | 
FreezeClockOnEdit
Set or Get FreezeClockOnEdit
Declaration
public bool FreezeClockOnEdit { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
IsNull
Gets or sets a value indicating whether this instance is null.
Declaration
public bool IsNull { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
MaxDateTime
Maximum Allowed DateTime
Declaration
public DateTime MaxDateTime { get; set; }Property Value
| Type | 
|---|
| System.DateTime | 
MinDateTime
Minimum Acceptable Time
Declaration
public DateTime MinDateTime { get; set; }Property Value
| Type | 
|---|
| System.DateTime | 
NullValue
Declaration
public DateTime? NullValue { get; set; }Property Value
| Type | 
|---|
| System.Nullable<System.DateTime> | 
OnFocusBehavior
Gets or sets the on focus behavior.
Declaration
public OnFocusBehavior OnFocusBehavior { get; set; }Property Value
| Type | Description | 
|---|---|
| OnFocusBehavior | The on focus behavior. | 
ShortestDayNames
Get or Set ShortestDayNames for Calendar
Declaration
public string[] ShortestDayNames { get; set; }Property Value
| Type | 
|---|
| System.String[] | 
ShowMaskOnNullValue
Gets or sets the value that indicate whether the mask show on null value when watermark visibility is collapsed
Declaration
public bool ShowMaskOnNullValue { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
TimeStepInterval
Gets or sets the time step interval for incrementing or decrementing
the time when using the up/down buttons in the dropdown clock.
Declaration
public int TimeStepInterval { get; set; }Property Value
| Type | 
|---|
| System.Int32 | 
Remarks
The default value is 1, and it represents the step increment or decrement.
Increasing this value allows time changes in larger intervals.
TodayButtonAction
Gets or sets a value that indicates whether to update date or both date and time value when today button is clicked in DateTimeEdit.
Declaration
public TodayButtonAction TodayButtonAction { get; set; }Property Value
| Type | Description | 
|---|---|
| TodayButtonAction | The default value is Date. | 
Methods
BasePropertiesChanged()
Bases the properties changed.
Declaration
protected override void BasePropertiesChanged()Overrides
ClosePopup()
Closes the popup.
Declaration
public void ClosePopup()Dispose()
Dispose DateTimeEdit
Declaration
public void Dispose()OnApplyTemplate()
Is called when a control template is applied.
Declaration
public override void OnApplyTemplate()OnCloseCalendarActionChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnCloseCalendarActionChanged(DependencyPropertyChangedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e | 
OnContextMenuOpening(ContextMenuEventArgs)
Raises the ContextMenuOpening event.
Declaration
protected override void OnContextMenuOpening(ContextMenuEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Controls.ContextMenuEventArgs | e | The System.Windows.Controls.ContextMenuEventArgs instance containing the event data. | 
Overrides
OnCreateAutomationPeer()
Creates an appropriate AutomationPeer for DateTimeEdit
Declaration
protected override AutomationPeer OnCreateAutomationPeer()Returns
| Type | Description | 
|---|---|
| System.Windows.Automation.Peers.AutomationPeer | Automation peer of DateTimeEdit | 
OnDateTimeChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [date time changed].
Declaration
public static void OnDateTimeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyObject | obj | The obj. | 
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnDateTimeChanged(DependencyPropertyChangedEventArgs)
Raises the DateTimeChanged event.
Declaration
protected void OnDateTimeChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnDisableDateSelectionChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [DisableDateSelection changed].
Declaration
public static void OnDisableDateSelectionChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyObject | obj | The obj. | 
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnDisableDateSelectionChanged(DependencyPropertyChangedEventArgs)
Raises the DropDownViewChanged event.
Declaration
protected void OnDisableDateSelectionChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnDrop(DragEventArgs)
Raises on Drop
Declaration
protected override void OnDrop(DragEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DragEventArgs | e | 
OnDropDownViewChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [drop down view changed].
Declaration
public static void OnDropDownViewChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyObject | obj | The obj. | 
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnDropDownViewChanged(DependencyPropertyChangedEventArgs)
Raises the DropDownViewChanged event.
Declaration
protected void OnDropDownViewChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.RoutedEventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. | 
OnLostFocus(RoutedEventArgs)
Raises the System.Windows.UIElement.LostFocus event (using the provided arguments).
Declaration
protected override void OnLostFocus(RoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.RoutedEventArgs | e | Provides data about the event. | 
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
Declaration
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.KeyboardFocusChangedEventArgs | e | 
OnMaxDateTimeChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [max date time changed].
Declaration
public static void OnMaxDateTimeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyObject | obj | The obj. | 
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnMaxDateTimeChanged(DependencyPropertyChangedEventArgs)
Raises the MaxDateTimeChanged event.
Declaration
protected void OnMaxDateTimeChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnMinDateTimeChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [min date time changed].
Declaration
public static void OnMinDateTimeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyObject | obj | The obj. | 
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnMinDateTimeChanged(DependencyPropertyChangedEventArgs)
Raises the MinDateTimeChanged event.
Declaration
protected void OnMinDateTimeChanged(DependencyPropertyChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. | 
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. | 
OnMouseWheel(MouseWheelEventArgs)
Called when the MouseWheel occur
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.MouseWheelEventArgs | e | A System.Windows.Input.MouseWheelEventArgs that contains the event data. | 
OnPreviewKeyDown(KeyEventArgs)
Called when the System.Windows.UIElement.KeyDown occurs.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.KeyEventArgs | e | The event data. | 
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. | 
OnPreviewMouseWheel(MouseWheelEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnPreviewMouseWheel(MouseWheelEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.MouseWheelEventArgs | e | The System.Windows.Input.MouseWheelEventArgs that contains the event data. | 
OnTextInput(TextCompositionEventArgs)
Invoked whenever an unhandled System.Windows.Input.TextCompositionManager.TextInput attached routed event reaches an element derived from this class in its route. Implement this method to add class handling for this event.
Declaration
protected override void OnTextInput(TextCompositionEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Input.TextCompositionEventArgs | e | Provides data about the event. | 
OpenPopup()
Opens the popup.
Declaration
public void OpenPopup()Events
CalendarPopupOpened
Declaration
public event RoutedEventHandler CalendarPopupOpenedEvent Type
| Type | 
|---|
| System.Windows.RoutedEventHandler | 
ClockPopupOpened
EventHandler for ClockPopupOpen
Declaration
public event RoutedEventHandler ClockPopupOpenedEvent Type
| Type | 
|---|
| System.Windows.RoutedEventHandler | 
DateTimeChanged
Event that is raised when DateTime property is changed.
Declaration
public event PropertyChangedCallback DateTimeChangedEvent Type
| Type | 
|---|
| System.Windows.PropertyChangedCallback | 
DisableDateSelectionChanged
Event that is raised when DisableDateSelection property is changed.
Declaration
public event PropertyChangedCallback DisableDateSelectionChangedEvent Type
| Type | 
|---|
| System.Windows.PropertyChangedCallback | 
DropDownViewChanged
Event that is raised when DropDownView property is changed.
Declaration
public event PropertyChangedCallback DropDownViewChangedEvent Type
| Type | 
|---|
| System.Windows.PropertyChangedCallback | 
MaxDateTimeChanged
Event that is raised when MaxDateTime property is changed.
Declaration
public event PropertyChangedCallback MaxDateTimeChangedEvent Type
| Type | 
|---|
| System.Windows.PropertyChangedCallback | 
MinDateTimeChanged
Event that is raised when MinDateTime property is changed.
Declaration
public event PropertyChangedCallback MinDateTimeChangedEvent Type
| Type | 
|---|
| System.Windows.PropertyChangedCallback | 
MonthChanged
Event that is raised when Month property is changed.
Declaration
public event RoutedEventHandler MonthChangedEvent Type
| Type | 
|---|
| System.Windows.RoutedEventHandler |