Skip to content

Utils.MultilineStringInputDialog

JaykeBird edited this page Feb 21, 2023 · 3 revisions

Back to home | Back to Reference | View raw text

MultilineStringInputDialog class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi.Utils
  SolidShineUi.Utils.MultilineStringInputDialog[[MultilineStringInputDialog]]
  end
  subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
  end
  subgraph SolidShineUi
  SolidShineUi.FlatWindow[[FlatWindow]]
  end
System.Windows.Markup.IComponentConnector --> SolidShineUi.Utils.MultilineStringInputDialog
SolidShineUi.FlatWindow --> SolidShineUi.Utils.MultilineStringInputDialog
Loading

Members

Properties

Public properties

Type Name Methods
string Description
Get or set the description text to display above the text box. This text should describe what the user should enter into the text box.
get, set
bool DialogResult
Get the result of the dialog when it is closed. "False" refers to the user cancelling the operation, while "True" refers to the user confirming, by clicking "OK" or pressing the Enter key.
get
bool EnterKeyConfirms
Get or set whether the Enter key can be used to confirm the dialog. If enabled, pressing down the Enter key will be treated as if the user pressed "OK".
get, set
bool EscapeKeyCancels
Get or set whether the Escape key can be used to cancel the dialog. If enabled, pressing down the Escape key will be treated as if the user pressed "Cancel".
get, set
bool SelectTextOnFocus
Get or set whether all of the text in the text box should be selected when the text box receives focus.
get, set
string Value
Get or set the text value of the input dialog's text box.
get, set

Methods

Public methods

Returns Name
void InitializeComponent()
InitializeComponent

Internal methods

Returns Name
Delegate _CreateDelegate(Type delegateType, string handler)

Details

Inheritance

Constructors

MultilineStringInputDialog [1/3]

public MultilineStringInputDialog()
Summary

Create a StringInputDialog with nothing preset.

MultilineStringInputDialog [2/3]

public MultilineStringInputDialog(ColorScheme cs)
Arguments
Type Name Description
ColorScheme cs The color scheme to use for the window.
Summary

Create a StringInputDialog with a color scheme.

MultilineStringInputDialog [3/3]

public MultilineStringInputDialog(ColorScheme cs, string title, string desc, string value)
Arguments
Type Name Description
ColorScheme cs The color scheme to use for the window.
string title The title of the window.
string desc The description to give to the user.
string value The value to place in the text box. By default, the text box is empty.
Summary

Create a StringInputBox with prefilled values.

Methods

InitializeComponent

public virtual void InitializeComponent()
Summary

InitializeComponent

_CreateDelegate

internal Delegate _CreateDelegate(Type delegateType, string handler)
Arguments
Type Name Description
Type delegateType
string handler

Properties

Value

public string Value { get; set; }
Summary

Get or set the text value of the input dialog's text box.

DialogResult

public bool DialogResult { get; }
Summary

Get the result of the dialog when it is closed. "False" refers to the user cancelling the operation, while "True" refers to the user confirming, by clicking "OK" or pressing the Enter key.

EnterKeyConfirms

public bool EnterKeyConfirms { get; set; }
Summary

Get or set whether the Enter key can be used to confirm the dialog. If enabled, pressing down the Enter key will be treated as if the user pressed "OK".

EscapeKeyCancels

public bool EscapeKeyCancels { get; set; }
Summary

Get or set whether the Escape key can be used to cancel the dialog. If enabled, pressing down the Escape key will be treated as if the user pressed "Cancel".

SelectTextOnFocus

public bool SelectTextOnFocus { get; set; }
Summary

Get or set whether all of the text in the text box should be selected when the text box receives focus.

Description

public string Description { get; set; }
Summary

Get or set the description text to display above the text box. This text should describe what the user should enter into the text box.

Remarks

Try to keep the description to about a sentence long. Ideally, the overall design of the program should make it apparent what the user should enter into the text box without reading the description.

Generated with ModularDoc

Clone this wiki locally