private void Properties(object sender, RoutedEventArgs e) { DialogWindowPropertiesComControl WindowProperties = new DialogWindowPropertiesComControl(this); WindowProperties.Owner = Application.Current.MainWindow; WindowProperties.ShowDialog(); e.Handled = true; }
protected override void OnMouseDoubleClick(MouseButtonEventArgs e) { base.OnMouseDoubleClick(e); if (IsSelected) { DialogWindowPropertiesComControl WindowProperties = new DialogWindowPropertiesComControl(this); WindowProperties.Owner = Application.Current.MainWindow; WindowProperties.ShowDialog(); } e.Handled = true; }