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

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........