private void CFindDialogExecute(object sender, ExecutedRoutedEventArgs e) { if (_findDialog == null || !_findDialog.IsLoaded || !_findDialog.IsVisible) { _findDialog = new FindDialog(this); _findDialog.Owner = this; searchtextoffset = 0; _findDialog.Show(); } else { _findDialog.SearchNext(); } }