Data context.
Inheritance: ObservableObject
Esempio n. 1
0
        private void Remove(XContext data)
        {
            if (data == null)
                return;

            if (data.Properties != null)
            {
                Remove(data.Properties);
            }

            data.PropertyChanged -= ObserveData;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XContainer"/> class.
 /// </summary>
 public XContainer()
     : base()
 {
     _layers = ImmutableArray.Create<XLayer>();
     _data = new XContext();
 }
Esempio n. 3
0
        private void Add(XContext data)
        {
            if (data == null)
                return;

            if (data.Properties != null)
            {
                Add(data.Properties);
            }

            data.PropertyChanged += ObserveData;
        }
Esempio n. 4
0
 /// <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);
 }