private void wnd_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Down)
{
Thickness t = playerL.Margin;
t.Top++;
t.Bottom--;
playerL.Margin = t;
}
else if (e.Key == Key.Up)
{
Thickness t = playerL.Margin;
t.Top--;
t.Bottom++;
playerL.Margin = t;
}
else if (e.Key == Key.Left)
{
Thickness t = playerL.Margin;
t.Left--;
t.Right++;
playerL.Margin = t;
}
else if (e.Key == Key.Right)
{
Thickness t = playerL.Margin;
t.Left++;
t.Right--;
playerL.Margin = t;
}
}