private FrameworkElement element; //TODO: Make weak /// <summary> /// Initializes a new instance of the <see cref="VisualStateUwp"/> class. /// </summary> public VisualStateUwp() { this.Name = Guid.NewGuid().ToString(); Setters = new SetterBaseCollection(); Setters.CollectionChanged += _setters_CollectionChanged; _stateTriggers.CollectionChanged += triggers_CollectionChanged; }
public VisualStateUwp() { _setters = new SetterBaseCollection(); _triggers = new ObservableCollection <StateTriggerBase>(); _triggers.CollectionChanged += triggers_CollectionChanged; _setters.CollectionChanged += _setters_CollectionChanged; }