|
this.treeGrid.SelectionController = new TreeGridSelectionControllerExt(this.treeGrid);
public class TreeGridSelectionControllerExt : TreeGridRowSelectionController
{
public TreeGridSelectionControllerExt(SfTreeGrid treeGrid)
: base(treeGrid)
{
}
protected override void ProcessKeyDown(KeyEventArgs args)
{
if ((Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)) &&
(Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)) && Keyboard.IsKeyDown(Key.Up))
{
// Do the customization need for Ctrl+Alt+Up key here
}
base.ProcessKeyDown(args);
}
} |