Exemplo n.º 1
0
        protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
        {
            if (e.Property == PropertyEditorsProperty)
            {
                HeliosPropertyEditorCollection oldEditors = e.OldValue as HeliosPropertyEditorCollection;
                if (oldEditors != null)
                {
                    oldEditors.CollectionChanged -= new System.Collections.Specialized.NotifyCollectionChangedEventHandler(PropertyEditors_CollectionChanged);
                }

                PropertyEditorGroups.Clear();

                if (PropertyEditors != null)
                {
                    LoadGroups();
                    PropertyEditors.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(PropertyEditors_CollectionChanged);
                }
            }
            base.OnPropertyChanged(e);
        }
Exemplo n.º 2
0
 public HeliosEditorDocument()
 {
     PropertyEditors = new HeliosPropertyEditorCollection();
 }