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


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?



Comments (1)

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


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.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.