Navigation issue with shortcut key

Wizard for WPF Forum

Posted 11 years ago by Anurodh Ora
Version: 4.5.0480
Avatar
Hi,

We disabled back button on wizard's first page and enabled back button on second page. When we navigate to second page (click Next) and then again come back (click Back) to first page. All works fine. (i.e. Back button is in disabled state)

But, the problem arises when shortcut keys are used that is hit Alt-B on second page and notice that Back button is in enabled state on the first page.

Steps to reproduce:
case 1:
1) Hit Alt-B on second page. (to simulate Back)
2) Notice on first page Back button is enabled (which was initially disabled and using mouse navigation it works fine)

case 2:
1) Hit Alt-B on second page. (to simulate Back)
2) Notice on first page Back button is enabled
3) Hit Alt-N or Alt-H or Alt-C nothing works.

Is this a bug? Or we are doing something wrong here.

Thanks,
Anurodh

Comments (3)

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

Please email over a simple sample project that shows the navigation issue with the shortcut keys so that we can debug what is happening. Thanks.


Actipro Software Support

Posted 11 years ago by Anurodh Ora
Avatar
Hi,

Just to give you a little update.
Our investigation showed that this is due to hosting windows control in wpf.
(in this case we have a windows hosted control on wizard's second page)

Thanks,
Anurodh
Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the sample.

1) We've tweaked our code to manually call CommandManager.InvalidateRequerySuggested after a new page is selected. Normally this works fine but for some reason the hosting of Windows Forms messes up focus timings. Our new call of that method resolves #1.

2) This seems to be a bug with WPF in general. If I replace your WinForms TextBox with a normal WPF one, everything is fine. We don't have anything that deals with access keys. That is all implemented by Microsoft internal to the WPF assemblies so unfortunately there's nothing we can do there.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) 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.