語言

BindableLayout.SetEmptyView(BindableObject, Object) 方法

定義

當物品來源為空時,會顯示檢視。

public:
 static void SetEmptyView(Microsoft::Maui::Controls::BindableObject ^ b, System::Object ^ value);
public static void SetEmptyView(Microsoft.Maui.Controls.BindableObject b, object value);
static member SetEmptyView : Microsoft.Maui.Controls.BindableObject * obj -> unit
Public Sub SetEmptyView (b As BindableObject, value As Object)

參數

b
BindableObject

用來設定空白視圖的可綁定物件。

value
Object

當項目來源為空時,要顯示的視圖或內容。

適用於