Пример #1
0
        public void CustomizeView(CustomUINodeModelButton model, NodeView nodeView)
        {
            var myWpfView = new MyWpfView();

            nodeView.inputGrid.Children.Add(myWpfView);

            myWpfView.DataContext = model;
        }
        public void CustomizeView(CustomUINodeModelButtonFunction model, NodeView nodeView)
        {
            myWpfView = new MyWpfView();
            myWpfView.button.Content = "Changed";
            //myWpfView.button.Click += (object sender, RoutedEventArgs e) => {
            //    model.Number++;
            //};
            nodeView.inputGrid.Children.Add(myWpfView);

            myWpfView.DataContext = model;
        }