private void Remove(XContext data) { if (data == null) return; if (data.Properties != null) { Remove(data.Properties); } data.PropertyChanged -= ObserveData; }
/// <summary> /// Initializes a new instance of the <see cref="XContainer"/> class. /// </summary> public XContainer() : base() { _layers = ImmutableArray.Create<XLayer>(); _data = new XContext(); }
private void Add(XContext data) { if (data == null) return; if (data.Properties != null) { Add(data.Properties); } data.PropertyChanged += ObserveData; }
/// <summary> /// Sets the <see cref="DependencyProperty"/> object value as <see cref="XContext"/>. /// </summary> /// <param name="obj">The <see cref="DependencyProperty"/> object.</param> /// <param name="value">The <see cref="XContext"/> value.</param> public static void SetData(DependencyObject obj, XContext value) { obj.SetValue(DataProperty, value); }