Share via


NumberBox.Description Property

Definition

Gets or sets content that is shown below the control. The content should provide guidance about the input expected by the control.

public:
 property Platform::Object ^ Description { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable Description();

void Description(IInspectable value);
public object Description { get; set; }
var object = numberBox.description;
numberBox.description = object;
Public Property Description As Object

Property Value

Object

Platform::Object

IInspectable

Content that is shown below the control. The default is null.

Remarks

The IsWrapEnabled property affects only the Header text; it doesn't cause Description text to wrap.

If you need to wrap Description text, you can use a TextBlock as the Description property value and set it to wrap, like this.

<NumberBox Header="Header" Width="160">
    <NumberBox.Description>
        <TextBlock Text="This is a long description for NumberBox."
                   TextWrapping="WrapWholeWords"/>
    </NumberBox.Description>
</NumberBox>

Applies to

See also