using System;
using System.Reflection;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
public class MainClass : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new MainClass());
}
public MainClass()
{
}
protected override void OnKeyDown(KeyEventArgs args)
{
if (args.Key == Key.Up)
{
Console.WriteLine("Key.Up");
}
base.OnKeyDown(args);
}
}
|