Class SimpleInputDialog
Represents a simple input dialog with a title, message, input field, and action buttons.
public class SimpleInputDialog : SimplePopupDialog, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IRaiseSystemColorsChanged
- Inheritance
-
SimpleInputDialog
- Implements
- Derived
Constructors
- SimpleInputDialog()
Initializes a new instance of the SimpleInputDialog class.
Properties
- Entry
Gets the input field of the dialog.
- EntryBorder
Gets the border of the input field.
- Label
Gets the label displaying the message in the dialog.
- Message
Gets or sets the message displayed in the dialog.
- Placeholder
Gets or sets the placeholder text for the input field.
- Text
Gets or sets the text entered in the input field.
- ValueWaiter
Gets or sets the AsyncUtils.ValueWaiter<T> instance used to asynchronously wait for a string value.
Methods
- CancelValueWaiter()
Cancels the current value waiter, if one exists.
- CreateGoToLineDialog()
Creates a new instance of SimpleInputDialog configured as a "Go To Line" dialog.
- CreateOtherContent()
Creates additional content for the dialog.
- DefaultDisplayPromptAsync(object?, string, string, string, string, string?, int, Keyboard?, string)
Calls DisplayPromptAsync(string, string, string, string, string, int, Keyboard, string).
- DisplayPromptAsync(object?, string, string, string, string, string?, int, Keyboard?, string)
Works similar to DisplayPromptAsync(string, string, string, string, string, int, Keyboard, string) but is implemented internally in the library.
- GetDefaultMessage()
Gets the default message for the input dialog.
- GetDefaultPlaceholder()
Gets the default placeholder text for the input field.
- GetDefaultTitle()
Gets the default title for the input dialog.
- OnCancelButtonClicked(DialogCloseAction)
Handles the event when the 'Cancel' button is clicked, 'X' button in the top-right corner of the dialog title is clicked or 'Escape' key is pressed.
- OnOkButtonClicked(DialogCloseAction)
Handles the event when the 'Ok' button is clicked or 'Enter' key is pressed.
- ResetColors()
Resets the colors of the dialog based on the current theme (light or dark).