private void dgDaily_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (!this.IsMouseDoubleClickDataGridRow(sender, e)) { return; } DailyDetail detail = new DailyDetail(this.ViewModel.SelectedItem); detail.Owner = Application.Current.MainWindow; detail.ShowDialog(); }