Ejemplo n.º 1
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;
        }
Ejemplo n.º 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;
        }