I have a borderless window and created the chrome but I need to disable the 'Alt+Space' shortcut. Any thoughts?
+2
A:
I'm not very good with WPF, but after some messing around, this seems to be on the right track. Just throw it in your Window code-behind:
protected override void OnKeyDown(KeyEventArgs e)
{
if (Keyboard.Modifiers == ModifierKeys.Alt && e.SystemKey == Key.Space)
{
e.Handled = true;
}
else
{
base.OnKeyDown(e);
}
}
Cory Larson
2010-02-17 00:02:11
Brad
2010-02-17 00:05:26
You're welcome, Brad. Happy coding!
Cory Larson
2010-02-17 02:48:18