Update DateTimePicker.cs

This commit is contained in:
Mahdi Hosseini 2021-02-17 22:25:44 +03:30 committed by GitHub
parent e23166a9e9
commit a7fb4c947a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Threading;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Controls.Primitives; using System.Windows.Controls.Primitives;
@ -81,6 +82,7 @@ namespace HandyControl.Controls
public DateTimePicker() public DateTimePicker()
{ {
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
InitCalendarWithClock(); InitCalendarWithClock();
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) => CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
{ {