private void texBox_KeyDown(object sender, KeyEventArgs e)
{
if (Keyboard.Modifiers == ModifierKeys.Shift)
{
if(Keyboard.IsKeyDown(Key.D8))
{
e.Handled = true;
}
if (Keyboard.IsKeyDown(Key.OemPipe))
{
e.Handled = true;
}
}

05-16 11:26