public SetterModel AddSetter(SetterSceneNode setter)
        {
            SetterModel setterModel = new SetterModel(setter);

            setterModel.Initialize();
            this.setters.Add(setterModel);
            this.OnPropertyChanged("HasEffect");
            return(setterModel);
        }
 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));
 }
 private void SetterSubscription_ContentChanged(object sender, SceneNode pathNode, SetterModel content, DocumentNodeMarker damageMarker, DocumentNodeChange damage)
 {
     content.Update();
 }
 private void SetterSubscription_Removed(object sender, SceneNode basisNode, object basisContent, SceneNode oldPathNode, SetterModel oldContent)
 {
     this.RemoveSetter(oldContent.Setter);
 }