コード例 #1
0
ファイル: MainWindow.cs プロジェクト: ClemensT/WPF-Samples
        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();
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: liuwenye2010/prj_vs2019
        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();
        }