A textbox meant to edit text. Displays a watermark while no text has been entered.
Supports many markdown shortcuts, when EnableMarkdownShortcuts is set to true. See https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet.
Namespace: Metrolib.Controls
Assembly: Metrolib (in Metrolib.dll)
public sealed class EditorTextBox : System.Windows.Controls.TextBox
Inheritance Object -> DispatcherObject -> DependencyObject -> Visual -> UIElement -> FrameworkElement -> Control -> TextBoxBase -> TextBox -> EditorTextBox
<Metrolib:EditorTextBox Watermark="Enter comment..." />
<Metrolib:EditorTextBox Watermark="Enter comment..." />
<Metrolib:EditorTextBox Text="The quick brown fox jumps over the lazy dog" Watermark="Enter comment..." TextWrapping="Wrap" />
<Metrolib:EditorTextBox Text="The quick brown fox jumps over the lazy dog" Watermark="Enter comment..." TextWrapping="Wrap" />
<Metrolib:EditorTextBox Text="The quick brown fox jumps over the lazy dog" Watermark="Enter comment..." TextWrapping="Wrap" IsEnabled="False" />
EnableMarkdownShortcuts: System.Boolean
Whether or not this control shall accept shortcuts (key gestures) which insert the appropriate markdown
syntax (such as ctrl+b to make text bold, inserts ...).
Is disabled by default.
Watermark: System.String
The watermark text that shall appear until Text is no longer empty.