public KeyboardNode() { DataContext = _vm = new KeyboardNodeViewModel { Key = Keys.None.ToString(), }; InitializeComponent(); }
public KeyboardNode(KeyboardNodeViewModel vm) { DataContext = _vm = new KeyboardNodeViewModel { DelayAfter = vm.DelayAfter, DelayBefore = vm.DelayBefore, Keys = vm.Keys, InputType = vm.InputType, }; _vm.SetKeys(); InitializeComponent(); }