private void Window_Loaded(object sender, RoutedEventArgs e) { var mainViewModel = ServiceLocator.Current.GetInstance <MainViewModel>(); mainViewModel.NavigateHelpDocumentWebBrowserCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(NavigateHelpDocumentWebBrowser); mainViewModel.NavigateMainWebBrowserCommand = new GalaSoft.MvvmLight.CommandWpf.RelayCommand <string>(NavigateMainWebBrowser); MainWebBrowser.Navigate("about:blank"); HelpDocumentWebBrowser.Navigate("about:blank"); }
private void NavigateHelpDocumentWebBrowser(string source) { HelpDocumentWebBrowser.Navigate(source); }