private void OnPropertyMarkerCommandsEditResourceCommand(object sender, ExecutedRoutedEventArgs eventArgs) { SceneNodeProperty associatedProperty = this.AssociatedProperty; if (associatedProperty != null) { using (WorkaroundPopup.LockOpen((DependencyObject)this)) associatedProperty.DoEditResource(); } eventArgs.Handled = true; }