Share via


ItemsView.EmptyView Property

Definition

Gets or sets the view or object to display when the ItemsSource is empty or null.

public:
 property System::Object ^ EmptyView { System::Object ^ get(); void set(System::Object ^ value); };
public object EmptyView { get; set; }
member this.EmptyView : obj with get, set
Public Property EmptyView As Object

Property Value

The empty view content, which can be a string, view, or any object. Use EmptyViewTemplate to customize rendering.

Remarks

The empty view provides user feedback when there are no items to display. If EmptyViewTemplate is set, it is used to render the empty view; otherwise, the object's string representation or the view itself is displayed.

Applies to