WPF focus after TaskDialog.Show
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got a WPF addin, which uses TaskDialog.Show to inform the user of specific circumstances.
After using TaskDialog.Show the WPF Window loses focus, and you cannot set focus by clicking on it, meaning you cannot move or resize it. While it is in this state the controls on the window are still active and highlight on a mouseover as if the window still has focus, and you can click on them and they activate. After using any of the controls the window focus behavior returns to normal. I can also return normal behavior by focussing on something other than Revit (e.g. Chrome, VS, IE, Explorer, etc. etc).
Any why this is happening, or how I can set focus back to normal? I've tried this.Activate() and this.UpdateLayout() but neither worked.
Thanks.