DateTimeEditBox Focus Problem

Editors for WPF Forum

Posted 5 years ago by brette esterbrooks
Version: 13.2.0592
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hello,

We are seeing an issue with the DateTimeEditBox (DTEB). The scenario is pretty simple (but not so simple to explain, but I'll try).

We have a DTEB bound to a Nullable<DateTime> property in our ViewModel. We are seeing our issue when the Nullable<DateTime> property transitions from a valid datetime value to a null value. It appears that in this scenario, for whatever reason the DTEB receives logical focus (only for a brief moment), only to hand focus off to another element in the tree. There is a very subtle side affect to this brief acquisition of focus. The moment the DTEB gets focus it raises the FrameworkElement.RequestBringIntoView event. At this point, our containing scroll viewer will attempt to honor that request shifting the view to the DTEB that raised the event. This results the screen scrolling to the location of the DTEB confusing our users.

Note that the control only behaves this way when transition between null and a valid value. It does not do this when the view model property is change between 2 valid datetime values.

Any insight would be great!

Thanks,

Brette

Comments (1)

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

Hi Brette,

It's hard to say what's happening offhand, without something to debug.  If you would like us to look into it, please make a new very simple sample project that shows the problem occurring and email that to our support address in a renamed .zip file extension so it doesn't get spam blocked.  In your email, reference this thread and give any instructions needed to show the issue.  Thanks!


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.