Example #1
0
 protected virtual void OnPropertyReferenceChanged(PropertyReferenceChangedEventArgs e)
 {
     if (this.PropertyReferenceChanged == null)
     {
         return;
     }
     this.PropertyReferenceChanged(this, e);
 }
Example #2
0
 private void OnRotationProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.rotationProperty.Recache();
     this.OnPropertyChanged("EulerX");
     this.OnPropertyChanged("EulerY");
     this.OnPropertyChanged("EulerZ");
     this.OnPropertyChanged("OrientationFromEulerAngles");
 }
Example #3
0
 private void transformProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     if (this.PropertyLookup == null)
     {
         return;
     }
     this.PropertyLookup.RecacheProperties();
 }
 private void OnPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     if (this.editingProperty == null || e.PropertyReference.CompareTo((object)this.editingProperty.Reference) != 0)
     {
         return;
     }
     this.Rebuild();
 }
Example #5
0
 private void OnBrushChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     if (e.PropertyReference.CompareTo((object)this.editingProperty.Reference) != 0 && this.oldNichedState == this.editingProperty.IsMixedValue || e.DirtyViewState == SceneViewModel.ViewStateBits.CurrentValues && !this.editingProperty.IsMixedValue)
     {
         return;
     }
     this.Rebuild();
 }
Example #6
0
 public void CallHandler(object sender, PropertyReferenceChangedEventArgs e)
 {
     if (this.hasBeenUnregistered)
     {
         return;
     }
     this.handler(sender, e);
 }
Example #7
0
 private void OnPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     if (e.PropertyReference.Count - 1 > this.parentProperty.Reference.Count)
     {
         return;
     }
     this.Rebuild();
 }
Example #8
0
        private void AmbientPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
        {
            SceneElementSelectionSet elementSelectionSet = this.designerContext.SelectionManager.ElementSelectionSet;

            if (elementSelectionSet == null || elementSelectionSet.PrimarySelection == null)
            {
                return;
            }
            this.UpdateAmbientValueFromSceneElement(elementSelectionSet.PrimarySelection, new PropertyReference(e.PropertyReference[0]));
        }
 private void OnTriggersCollectionChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     foreach (PropertyReferenceProperty referenceProperty in (Collection <PropertyEntry>) this.TriggerNodes)
     {
         if (referenceProperty.Reference.IsPrefixOf(e.PropertyReference))
         {
             return;
         }
     }
     this.Rebuild();
 }
 private void OnPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.NotifyPropertyReferenceChanged(e.PropertyReference);
     if (e.PropertyReference.ReferenceSteps != null && e.PropertyReference.Count - this.property.Reference.Count > 0)
     {
         this.NotifySubPropertyChanged();
     }
     else
     {
         this.NotifyRootValueChanged();
     }
 }
Example #11
0
 private void OnTriggersCollectionChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     using (IEnumerator <PropertyEntry> enumerator = this.TriggerNodes.GetEnumerator())
     {
         while (((IEnumerator)enumerator).MoveNext())
         {
             if (((PropertyReferenceProperty)enumerator.Current).Reference.IsPrefixOf(e.PropertyReference))
             {
                 return;
             }
         }
     }
     this.Rebuild();
 }
Example #12
0
        private void OnPropertyPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
        {
            if (this.PropertyValue == null)
            {
                return;
            }
            SceneNodeProperty sceneNodeProperty = this.PropertyValue.get_ParentProperty() as SceneNodeProperty;

            if (sceneNodeProperty.ValueSource.get_IsDefaultValue() || sceneNodeProperty.ValueSource.get_IsInheritedValue())
            {
                this.ChangeActiveEditMode((PropertyContainerEditMode)0);
            }
            if (sceneNodeProperty == null || e.PropertyReference != sceneNodeProperty.Reference)
            {
                return;
            }
            this.Recache();
        }
        private void OnPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
        {
            if (ModelItem.Root.ItemType != typeof(ActivityBuilder))
            {
                return;
            }

            string propertyName = this.ModelItem.Properties[DelegatePropertyName].Reference;

            this.isSetInternally = true;
            if (!string.IsNullOrEmpty(propertyName))
            {
                this.chooser.SelectedPropertyName = propertyName;
            }
            else
            {
                this.chooser.SelectedPropertyName = null;
            }

            this.isSetInternally = false;
        }
Example #14
0
 private void FireAllPropertyChangedEvents(SceneUpdatePhaseEventArgs args)
 {
     using (args.ViewModel != null ? args.ViewModel.ScopeViewObjectCache() : (IDisposable)null)
     {
         if (this.MultiplePropertyReferencesChanged != null)
         {
             bool forceUpdate = args.ViewModel == null;
             this.MultiplePropertyReferencesChanged(this, new MultiplePropertyReferencesChangedEventArgs((IList <PropertyReference>)null, args.DirtyViewState, forceUpdate));
         }
         this.DeferUpdateHandlerList(true);
         PropertyReferenceChangedEventArgs e = new PropertyReferenceChangedEventArgs(args.DirtyViewState, (PropertyReference)null);
         for (int index = 0; index < this.propertyReferenceChangedHandlerList.Count; ++index)
         {
             PropertyReference propertyReference = this.propertyReferenceChangedHandlerList.Keys[index];
             foreach (PropertyManager.HandlerInfo handlerInfo in this.propertyReferenceChangedHandlerList.Values[index])
             {
                 e.PropertyReference = propertyReference;
                 handlerInfo.CallHandler(this, e);
             }
         }
         this.DeferUpdateHandlerList(false);
     }
 }
Example #15
0
 private void OnEditingPropertyChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #16
0
 private void OnSourceNameOrSourceObjectPropertyPropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #17
0
 protected void TargetScreenProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #18
0
 protected void EditingProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #19
0
 private void easingFunctionProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.UpdateEasingFunctionSelected();
     this.SendPropertyChanged("SubProperties");
 }
Example #20
0
 private void OnSpecularPowerChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.OnPropertyChanged("SpecularPower");
 }
Example #21
0
 private void editingProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.UpdateFromDataContext();
 }
Example #22
0
 private void OnRotationAngleChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.OnPropertyChanged("RotationAngle");
 }
Example #23
0
 private void easingFunctionProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.NotifyPropertyChanged("GeneratedEasingFunction");
 }
 private void PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.OnPropertyChanged("Tooltip");
 }
Example #25
0
        private void FireSelectivePropertyChangedEventsWorker(SceneViewModel.ViewStateBits dirtyViewState)
        {
            this.DeferUpdateHandlerList(true);
            int index1 = 0;
            int index2 = 0;
            PropertyReferenceChangedEventArgs e = new PropertyReferenceChangedEventArgs(dirtyViewState, (PropertyReference)null);

            for (; index1 < this.propertyReferenceChangedHandlerList.Count; ++index1)
            {
                while (index2 < this.changedPropertyReferences.Count && index1 < this.propertyReferenceChangedHandlerList.Count && this.changedPropertyReferences[index2].CompareTo(this.propertyReferenceChangedHandlerList.Keys[index1]) < 0)
                {
                    if (this.changedPropertyReferences[index2].IsPrefixOf(this.propertyReferenceChangedHandlerList.Keys[index1]))
                    {
                        foreach (PropertyManager.HandlerInfo handlerInfo in this.propertyReferenceChangedHandlerList.Values[index1])
                        {
                            e.PropertyReference = this.propertyReferenceChangedHandlerList.Keys[index1];
                            handlerInfo.CallHandler(this, e);
                        }
                        ++index1;
                    }
                    else
                    {
                        ++index2;
                    }
                }
                if (index2 < this.changedPropertyReferences.Count && index1 < this.propertyReferenceChangedHandlerList.Count)
                {
                    if (this.changedPropertyReferences[index2].CompareTo(this.propertyReferenceChangedHandlerList.Keys[index1]) == 0)
                    {
                        foreach (PropertyManager.HandlerInfo handlerInfo in this.propertyReferenceChangedHandlerList.Values[index1])
                        {
                            e.PropertyReference = this.propertyReferenceChangedHandlerList.Keys[index1];
                            handlerInfo.CallHandler(this, e);
                        }
                    }
                    else if (this.propertyReferenceChangedHandlerList.Keys[index1].IsPrefixOf(this.changedPropertyReferences[index2]))
                    {
                        int index3 = index2;
                        do
                        {
                            foreach (PropertyManager.HandlerInfo handlerInfo in this.propertyReferenceChangedHandlerList.Values[index1])
                            {
                                if (handlerInfo.IncludeSubpropertyChanges)
                                {
                                    e.PropertyReference = this.changedPropertyReferences[index3];
                                    handlerInfo.CallHandler(this, e);
                                }
                            }
                        }while (++index3 < this.changedPropertyReferences.Count && this.propertyReferenceChangedHandlerList.Keys[index1].IsPrefixOf(this.changedPropertyReferences[index3]));
                    }
                }
                else
                {
                    break;
                }
            }
            this.DeferUpdateHandlerList(false);
            if (this.MultiplePropertyReferencesChanged == null)
            {
                return;
            }
            this.MultiplePropertyReferencesChanged(this, new MultiplePropertyReferencesChangedEventArgs((IList <PropertyReference>) this.changedPropertyReferences, dirtyViewState, false));
        }
Example #26
0
 private void OnVector3DChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #27
0
 private void ScreenNameProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.Rebuild();
 }
Example #28
0
 private void property_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.OnPropertyChanged("RegistrationPoint");
 }
Example #29
0
 private void transformProperty_PropertyReferenceChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.OnPropertyChanged("OrientationFromAngles");
     this.OnPropertyChanged("IsValuePlaneProjection");
 }
Example #30
0
 private void KeyTimePropertyChanged(object sender, PropertyReferenceChangedEventArgs e)
 {
     this.UpdateTime0KeyFrameStatus();
 }