Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Keyboard events in diagram lite control (Read 1849 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Keyboard events in diagram lite control
Nov 2nd, 2009 at 5:18am
Print Post  
Hi Stoyo

How i would trap the keyboard event with diagram lite (silverlight) control.

With diagram.KeyUp or  diagram.KeyDown event I am not able to capture any event.
I want to achive following two things with keyboard

1. When node is selected, and pressing delete key I want to delete the selected node.

2. With the drag drop sample ( draging from one control to another control) when dragging is in process, pressing Esc key should cancel the drag operation

Regards
Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Keyboard events in diagram lite control
Reply #1 - Nov 2nd, 2009 at 8:23am
Print Post  
Hi Rajesh,

Call diagram.Focus() to get the keyboard events. E.g. do that from the MouseLeftButtonDown event handler.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint