private void Image_DoubleClick(object sender, RoutedEventArgs e) { PictureDialog pictureDialog = new PictureDialog(); pictureDialog.SetImage((Image)sender); pictureDialog.Show(); }
//사진을 2번 클릭했을시에 Dialog에 사진을 확대해서 띄워준다. private void Image_DoubleClick(object sender, MouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2) { PictureDialog pictureDialog = new PictureDialog(); pictureDialog.SetImage((Image)sender); pictureDialog.Show(); } }