Shell.SetTitleView(BindableObject, View) 方法

定义

View设置在给定obj处于活动状态时要显示在导航栏中的任何内容。

public:
 static void SetTitleView(Microsoft::Maui::Controls::BindableObject ^ obj, Microsoft::Maui::Controls::View ^ value);
public static void SetTitleView (Microsoft.Maui.Controls.BindableObject obj, Microsoft.Maui.Controls.View value);
static member SetTitleView : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.View -> unit
Public Shared Sub SetTitleView (obj As BindableObject, value As View)

参数

obj
BindableObject

将 TitleView 设置为的对象。

value
View

要显示在导航栏中的视图。

适用于