Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }