Share via


MessageTextBox Class

Definition

A TextBox which shows a user provided text when its empty.

public ref class MessageTextBox : System::Windows::Controls::TextBox
public class MessageTextBox : System.Windows.Controls.TextBox
type MessageTextBox = class
    inherit TextBox
Public Class MessageTextBox
Inherits TextBox
Inheritance
MessageTextBox

Constructors

MessageTextBox()

Fields

BackgroundTextProperty

Identifies the BackgroundText dependency property.

IsBackgroundTextShownProperty

Identifies the IsBackgroundTextShown dependency property.

Properties

BackgroundText

Gets or sets a value for text presented to user when TextBox is empty.

IsBackgroundTextShown

Gets a value indicating if the background text is being shown.

Methods

OnBackgroundTextChanged(PropertyChangedEventArgs<String>)

Called when BackgroundText property changes.

OnIsBackgroundTextShownChanged(PropertyChangedEventArgs<Boolean>)

Called when IsBackgroundTextShown property changes.

Events

BackgroundTextChanged

Occurs when BackgroundText property changes.

IsBackgroundTextShownChanged

Occurs when IsBackgroundTextShown property changes.

Applies to