Exemple #1
0
        public Buttons()
        {
            this.InitializeComponent();

            Loading  += (s, e) => DataContext = _viewModel = new ButtonsViewModel();
            Unloaded += (s, e) => DataContext = _viewModel = null;
        }
Exemple #2
0
        public Buttons()
        {
            this.InitializeComponent();

            DataContext = _viewModel = new ButtonsViewModel();
        }