Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need Focus on diagram in case of Command binding (Read 1706 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Need Focus on diagram in case of Command binding
Oct 20th, 2009 at 2:02pm
Print Post  
Hi Stoyan,

We have implemented command binding to move the nodes of the diagram using arrow keys in our application.
When we click on the node it gets selected. Now when we try to move this node with the arrow key, it doesn't move. 
Now when we press "Tab", focus gets transformed to the diagram and now we can move the nodes with the arrow keys.

We are handling some event in diagram_GotFocus so navigation using Tab is creating some unnecessary operations. We want when we click on the node it should also give focus to diagram so that we can move the items without pressing tab key.

Please suggest how this is possible?

Regards,
Anshul.

« Last Edit: Oct 20th, 2009 at 3:50pm by Anshul »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Focus on diagram in case of Command bindi
Reply #1 - Oct 20th, 2009 at 4:13pm
Print Post  
Set <ScrollViewer Focusable="False" ... >, otherwise the ScrollViewer gets the focus when you click anywhere in the diagram. You will probably still get the diagram_GotFocus event though.
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Need Focus on diagram in case of Command bindi
Reply #2 - Oct 21st, 2009 at 6:15am
Print Post  
Thanks Stoyan, its working Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint