Class SimpleSearchDialog
Represents a dialog for performing a simple search and replace operations.
public class SimpleSearchDialog : SimpleTwoFieldInputDialog, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IRaiseSystemColorsChanged
- Inheritance
-
SimpleSearchDialog
- Implements
Remarks
This dialog is designed to collect user input for a search operation and replace operations. It inherits functionality from SimpleTwoFieldInputDialog.
Constructors
- SimpleSearchDialog()
Initializes a new instance of the SimpleSearchDialog class.
Properties
- FindNextButtonClicked
Occurs when the "Find Next" button is clicked.
- FindPreviousButtonClicked
Occurs when the "Find Previous" button is clicked.
- FirstButton
Gets the first button in the dialog.
- IsCaseSensitive
Gets a value indicating whether the current operation or comparison is case-sensitive.
- IsRegularExpression
Gets a value indicating whether the search string is treated as a regular expression.
- IsReplaceVisible
Gets or sets a value indicating whether the replace functionality is visible.
- IsSelectionOnly
Gets a value indicating whether the current operation is limited to the selected text.
- IsSelectionOnlyEnabled
Gets or sets a value indicating whether the selection-only mode is enabled.
- IsWholeWords
Gets a value indicating whether the search is restricted to whole words.
- NeedCancelButton
Gets a value indicating whether the "Cancel" button is required.
- NeedOkButton
Gets a value indicating whether the "OK" button is required.
- ReplaceAllButtonClicked
Occurs when the "Replace All" button is clicked.
- ReplaceButtonClicked
Occurs when the "Replace" button is clicked.
- SecondButton
Gets the second button in the dialog.
- SettingsChanged
Gets or sets the action to be invoked when settings are changed.
- SettingsLayout
Gets the layout container for settings controls.
Methods
- CreateOtherContent()
Creates additional content for the dialog.
- OnFirstButtonClicked()
Raises the appropriate event based on the visibility state of the Replace button.
- OnOkButtonClicked(DialogCloseAction)
Handles the event when the 'Ok' button is clicked or 'Enter' key is pressed.
- OnSecondButtonClicked()
Raises the appropriate event when the second button is clicked, based on the current IsReplaceVisible state.
- OnSettingsChanged()
Invoked when the settings have changed, triggering the SettingsChanged event.