void OnWindowLoaded(object sender, RoutedEventArgs args) { UriDialog dlg = new UriDialog(); dlg.Owner = this; dlg.Text = "http://"; dlg.ShowDialog(); try { frm.Source = new Uri(dlg.Text); } catch (Exception exc) { MessageBox.Show(exc.Message, Title); } }
void OnWindowLoaded(object sender, RoutedEventArgs args) { UriDialog dlg = new UriDialog(); dlg.Owner = this; dlg.Text = "http://"; dlg.ShowDialog(); try { frm.Source = new Uri(dlg.Text); } catch (Exception exc) { MessageBox.Show(exc.Message, Title); } }