key combination at silerlight datagrid


 

hey want call javascript function website on selection of ctrl + m key not working

as below:: 

 

private void layoutroot_keydown(object sender, keyeventargs e)

{

if (keyboard.modifiers == modifierkeys.control && e.key == key.m)

{

htmlpage.window.invoke("keycombo");e.handled = true;

}

 

}

thx , got solution

with keydown  able this

 

if ( keyboard.modifiers == modifierkeys.control && e.key == key.m)

{

htmlpage.window.dispatcher.begininvoke(delegate

{

htmlpage.window.invoke("keypressed");

});

}

 

 



Silverlight  >  Silverlight Controls and Silverlight Toolkit



Comments

Popular posts from this blog

SQL Server PSProvider SQL Server Authentication

BIT Version

How to calculate the delta size while diffing the files in TeamFoundationServer ?