MenuFlyoutItem.Text Property

Definition

Gets or sets the text content of a MenuFlyoutItem.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.MenuFlyoutItem.Text.

public:
 property Platform::String ^ Text { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Text();

void Text(winrt::hstring value);
public string Text { get; set; }
var string = menuFlyoutItem.text;
menuFlyoutItem.text = string;
Public Property Text As String
<MenuFlyoutItem Text="string"/>
- or -
<MenuFlyoutItem>string</MenuFlyoutItem>

Property Value

String

A string that specifies the text content of this MenuFlyoutItem. The default is an empty string.

Applies to