Exemplo n.º 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            _mainWindowModel = new MainWindowModel();
            MainWindow = new MainWindow()
            {
                Visibility = Visibility.Visible,
                DataContext = _mainWindowModel
            };
        }
Exemplo n.º 2
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            MainWindowModel model = (MainWindowModel)DataContext;

            model.InitWebControl(WebControl, @"html/index.html");
        }