示例#1
0
        public void SetupCustomUIElements(dynNodeView nodeUI)
        {
            var selectionControl = new ElementSelectionControl {
                DataContext = this
            };

            nodeUI.inputGrid.Children.Add(selectionControl);
        }
        public void CustomizeView(SelectionBase <TSelection, TResult> model, NodeView nodeView)
        {
            var selectionControl = new ElementSelectionControl {
                DataContext = model
            };

            nodeView.inputGrid.Children.Add(selectionControl);
        }
示例#3
0
        public void CustomizeView(SelectionBase <TSelection, TResult> model, NodeView nodeView)
        {
            Model         = model;
            SelectCommand = new DelegateCommand(() => Model.Select(null), Model.CanBeginSelect);

            var selectionControl = new ElementSelectionControl {
                DataContext = this
            };

            nodeView.inputGrid.Children.Add(selectionControl);
        }
示例#4
0
        public void CustomizeView(SelectionBase <TSelection, TResult> model, NodeView nodeView)
        {
            Model                  = model;
            SelectCommand          = new DelegateCommand(() => Model.Select(null), Model.CanBeginSelect);
            Model.PropertyChanged += (s, e) => {
                if (e.PropertyName == "CanSelect")
                {
                    SelectCommand.RaiseCanExecuteChanged();
                }
            };

            var selectionControl = new ElementSelectionControl {
                DataContext = this
            };

            nodeView.inputGrid.Children.Add(selectionControl);
        }