private void editFindMenuItem_Click(object sender, RoutedEventArgs e) { // Instantiate the dialog box var dlg = new FindDialogBox(documentTextBox) {Owner = this}; // Configure the dialog box dlg.TextFound += dlg_TextFound; // Open the dialog box modally dlg.Show(); }
private void editFindMenuItem_Click(object sender, RoutedEventArgs e) { // Instantiate the dialog box var dlg = new FindDialogBox(documentTextBox) { Owner = this }; // Configure the dialog box dlg.TextFound += dlg_TextFound; // Open the dialog box modally dlg.Show(); }