private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue == null)
            {
                return;
            }

            var nodeContext = e.NewValue as INodeProperties;
            if (nodeContext == null)
            {
                return;
            }

            _source = new NodePropertyDataGridSource(nodeContext.UIMetadata);
            NodeMetadataDataGrid.ItemsSource = null;
            NodeMetadataDataGrid.ItemsSource = _source;
        }
Example #2
0
        private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue == null)
            {
                return;
            }

            var nodeContext = e.NewValue as INodeProperties;

            if (nodeContext == null)
            {
                return;
            }

            _source = new NodePropertyDataGridSource(nodeContext.UIMetadata);
            NodeMetadataDataGrid.ItemsSource = null;
            NodeMetadataDataGrid.ItemsSource = _source;
        }