public RepeatNode(RepeatNodeViewModel vm) { DataContext = _vm = new RepeatNodeViewModel { DelayAfter = vm.DelayAfter, DelayBefore = vm.DelayBefore, RepeatCount = vm.RepeatCount, SelectedNodeType = vm.SelectedNodeType, SelectedNode = (INode?)vm.SelectedNode?.Clone(), }; InitializeComponent(); }
public RepeatNode() { DataContext = _vm = new RepeatNodeViewModel(); InitializeComponent(); }