Class ValueFromUserParams<T>
Contains properties which allow to customize dialog box which asks a value from the user.
public class ValueFromUserParams<T> : BaseObject, IBaseObject
Type Parameters
T
Type of value.
- Inheritance
-
ValueFromUserParams<T>
- Implements
- Derived
Properties
- AcceptButtonText
Gets or sets accept button text.
- CancelButtonText
Gets or sets cancel button text.
- DefaultValue
Gets or sets default value for the input text.
- MaxLength
Gets or sets max length of the input value.
- Message
Gets or sets dialog message.
- OnApply
Gets or sets action which is fired when 'Ok' is pressed in the dialog.
- OnCancel
Gets or sets action which is fired when 'Cancel' is pressed in the dialog.
- OnClose
Gets or sets action which is fired when dialog is closed.
- OnSetup
Gets or sets action which is fired before dialog is shown to the user.
- Parent
Gets or sets dialog parent.
- SafeAcceptButtonText
Returns AcceptButtonText if it's specified; otherwise returns default text for the accept button.
- SafeCancelButtonText
Returns CancelButtonText if it's specified; otherwise returns default text for the cancel button.
- SafeDefaultValueAsString
Gets DefaultValue as string or an empty string if it is not specified.
- SafeMessage
Gets Message or an empty string.
- Title
Gets or sets dialog title. If not specified, default input dialog title is used.
- VirtualKeyboardClass
Gets or sets virtual keyboard class used in the input dialog.
- VirtualKeyboardFlags
Gets or sets virtual keyboard flags used in the input dialog.
Methods
- RaiseActions(T?)
Raises dialog result actions after dialog is closed.