private void OnPropertyMarkerCommandsClearValueCommand(object sender, ExecutedRoutedEventArgs eventArgs) { SceneNodeProperty associatedProperty = this.AssociatedProperty; if (associatedProperty != null) { using (WorkaroundPopup.LockOpen((DependencyObject)this)) { associatedProperty.DoClearValue(); PropertyMarker.ResetPropertyContainerMode((RoutedEventArgs)eventArgs); } } eventArgs.Handled = true; }
internal void ExecuteClearPropertyValueCommand(object sender, ExecutedRoutedEventArgs args) { Microsoft.Windows.Design.PropertyEditing.PropertyValue propertyValue = this.DataContext as Microsoft.Windows.Design.PropertyEditing.PropertyValue; if (propertyValue == null) { return; } SceneNodeProperty sceneNodeProperty = propertyValue.ParentProperty as SceneNodeProperty; if (sceneNodeProperty == null) { return; } sceneNodeProperty.DoClearValue(); }
internal void ExecuteClearPropertyValueCommand(object sender, ExecutedRoutedEventArgs args) { PropertyValue propertyValue = this.DataContext as PropertyValue; if (propertyValue == null) { return; } SceneNodeProperty sceneNodeProperty = propertyValue.get_ParentProperty() as SceneNodeProperty; if (sceneNodeProperty == null) { return; } sceneNodeProperty.DoClearValue(); }