示例#1
0
        private void ShowCalculator_Click(object sender, RoutedEventArgs e)
        {
            var view = new CalculatorView();

            view.Owner = Application.Current.MainWindow;
            view.Show();
        }
示例#2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            CalculatorView view = new CalculatorView();

            view.DataContext = new CalculatorViewModel();
            view.Show();
        }