Message 1 of 11
F1 Help for addin only, using WPF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I'm implementing a custom context dependent help in our Revit addins (based on WPF, using C#). I catch the user pressing 'F1' and react on that, but face the problem that Revit always starts my internet browser showing the Revit help page when 'F1' is pressed. This happens even if i catch the KeyDown and PreviewKeyDown events and set 'Handled' to true and even if the active window is shown using ShowDialog().
I am aware of the solution working for Windows Forms:
https://thebuildingcoder.typepad.com/blog/2018/03/contextual-help-best-practice.html.
but I have not found a working solution for WPF. (Wouldn't it be nice if Revit just respected the event 'Handled' property?)
Regards Henrik