Esempio n. 1
0
        public SetterModel AddSetter(SetterSceneNode setter)
        {
            SetterModel setterModel = new SetterModel(setter);

            setterModel.Initialize();
            this.setters.Add(setterModel);
            this.OnPropertyChanged("HasEffect");
            return(setterModel);
        }
Esempio n. 2
0
 private static int CompareSetters(SetterModel a, SetterModel b)
 {
     if (a.Target == b.Target)
     {
         return(a.Property.CompareTo(b.Property));
     }
     if (a.Target is FrameworkTemplateElement)
     {
         return(-1);
     }
     if (b.Target is FrameworkTemplateElement)
     {
         return(1);
     }
     return(a.TargetDisplayName.CompareTo(b.TargetDisplayName));
 }
Esempio n. 3
0
 private void SetterSubscription_ContentChanged(object sender, SceneNode pathNode, SetterModel content, DocumentNodeMarker damageMarker, DocumentNodeChange damage)
 {
     content.Update();
 }
Esempio n. 4
0
 private void SetterSubscription_Removed(object sender, SceneNode basisNode, object basisContent, SceneNode oldPathNode, SetterModel oldContent)
 {
     this.RemoveSetter(oldContent.Setter);
 }