Delen 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.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

void Description(IInspectable value);
public object Description { get; set; }
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.

xmlns:muxc="using:Microsoft.UI.Xaml.Controls"

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

Applies to

See also