DateTimeEditBox Format Change Fires SelectionChanged event on the parent control.

Editors for WPF Forum

Posted 5 years ago by Irshad M P
Version: 16.1.0636
Avatar

Hi,

I have an application in which i place a DateTimeEditBox on a wpf Canvas object. The Canvas is contained in a Tab Control. On the tab control's SelectionChanged event I am doing certain logic.

In the backend, I am changing the Format property of the DateTimeEditBox control from code depending up on certain scenarios.

When I change the Format to a value (eg. dd MMM yyyy) where the content of the control gets a text (eg. JUN in 29 JUN 2019 for todays date), the SelectionChanged event of the tab control gets fired.

Is there any tab control with in the DateTimeEditBox?

What can be the exact reason for this behavior?

Thanks,

Irshad.M

Comments (1)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

The pickers are Selector-based, so my guess is that an event from that or something similar is bubbling up.  If you check the e.OriginalSource property then you can make sure the event isn’t a bubbled one and is for your actual tab control.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.