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?