You just need to use PreviewEvent Which is Something like that,
<grid name="grid1" verticalalignment="Top" background="AliceBlue" previewmouseleftbuttondown="TestPreview"></grid>
And on the code behind,
private void TestPreview(object sender, MouseEventArgs e)
{
grid1.Background = Brushes.Blue;
}
Now you can do it in your own way. But i would suggest you to look on to the RoutedEvent thoroughly. If you want you might have a look on that [
^]