private void BrowserBtn_Click(object sender, RoutedEventArgs e) { var page = new BrowserView(BrowserFlags.CONFIRM); if (page.ShowDialog() != true) { return; } var items = page.HeaderItems; foreach (var item in items) { ViewModel.AddHeader(item); } }