Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            var context = new ClockViewModel();

            DataContext = context;
            KeyUp      += context.WindowKeyPress;
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Constructor
 /// </summary>
 public MainWindow()
 {
     InitializeComponent();
     _mainViewModel = new();
     Loaded        += MainWindowLoaded;
 }