Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DockablePane focus back to View like Properties window

0 REPLIES 0
Reply
Message 1 of 1
tiago_marafigo
290 Views, 0 Replies

DockablePane focus back to View like Properties window

Hello,

 

I have a dockable pane running some commands (IExternalCommandHandler implemented) that requires selection of elements. There is focus behavior that I'd some help in clarifying please. Currently when you click on a field in the Properties window the focus goes to the window, and if you hover your mouse outside the focus goes back to the active view, without user input. The project browser doesn't do this, if you click on it the focus goes to it, but when you hover your mouse outside it retains focus. The dockable pane in WPF acts just like the project browser, and I'd like it to behave more like the properties window in regards to switching focus.

 

I have indeed tried these solutions, but they don't address this topic:

https://forums.autodesk.com/t5/revit-api-forum/dockable-pane-focus/td-p/8887307

https://forums.autodesk.com/t5/revit-api-forum/click-on-dock-pane-deselects-elements/m-p/5279637

 

I have also tested a switch of active view, to a dummy view and back to the original view. It works, but isn't a suitable solution due to performance issue in large projects. I have also tested UIView.Zoom but it doesn't focuses back.

 

Any other suggestion folks? Thanks!!

Labels (3)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community