private void MuisIn(MouseEventArgs e) { Image tg = (Image)e.OriginalSource; groteView = new View.ImageView(); groteView.GroteImage.Source = tg.Source; groteView.Show(); }
private void MuisIn(MouseEventArgs e) { try { Image tg = (Image)e.OriginalSource; groteview = new View.ImageView(); groteview.GroteImage.Source = tg.Source; groteview.Show(); } catch (InvalidCastException) { MessageBox.Show("Geen afbeelding "); } }