DateTimeEditBox date editing

Editors for WPF Forum

Posted 9 years ago by Aleksander Brzozowski
Version: 10.2.0532
What is expected behaviour on change date in DateTimeEditBox, when "Drop Down Window" is opened?

Because, sometimes after date changing in "drop down window", this window is closed, and sometimes is stil opened, while close button is not pressed.

I have window, where create DateTimeEditBox dynamically :

DateTimeEditBox dtInTime = new DateTimeEditBox();
dtInTime.Margin = new Thickness(5);
dtInTime.MinWidth = 120;
Binding b = new Binding("ObligeFrom");
b.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
b.Mode = BindingMode.TwoWay;
b.NotifyOnValidationError = true;
PeriodValidation period_validation = new PeriodValidation(, data_source);//my validation
 dtInTime.SetBinding(ActiproEditors.DateTimeEditBox.ValueProperty, b);
dt_stack_panel.Children.Add(dtInTime);//my panel
BindingExpression be = dtInTime.GetBindingExpression(ActiproEditors.DateTimeEditBox.ValueProperty);
be.UpdateTarget();//refreshing because this part of code is invoked many times
be.UpdateSource();//to automatic invoked validation
Is bug or something else?

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Aleksander,

For the default drop-down content, it depends on what format you are using. It looks like you are using the default format, so it should show a MonthCalendar and an AnalogClock (since both the date and time are present in the DateTimeEditBox). In this case, selecting a date with the mouse does not close the drop-down, since the user may still need to enter a time.

If your format only shows a date, then only a MonthCalendar is shown in the drop-down. In this scenario, selecting a date with the mouse will also close the drop-down.

If you can put together a complete sample that reproduces any issues you see and email it over, then we can take a closer look.

Actipro Software Support

Posted 9 years ago by Aleksander Brzozowski
Thanks for reply,
I`m using default format (monthCalendar and AnalogClock).
However sometimes after selecting date with mouse the drop down content is closed.

I`ll put sample i further time.

The latest build of this product (v2019.1 build 0685) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.