InfoBar.Content Property

Definition

Gets or sets the XAML Content that is displayed below the title and message in the InfoBar.

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

void Content(IInspectable value);
public object Content { get; set; }
var object = infoBar.content;
infoBar.content = object;
Public Property Content As Object

Property Value

Object

Platform::Object

IInspectable

Examples

Tip

For more info, design guidance, and code examples, see InfoBar.

The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.

Remarks

The content is shown in its own line below the Title and Message. The InfoBar will expand to fit the content defined.

Applies to

See also