Share via


NavigationPage.TitleViewProperty 字段

定义

附加属性 的可绑定属性 TitleView

public: static initonly Microsoft::Maui::Controls::BindableProperty ^ TitleViewProperty;
public static readonly Microsoft.Maui.Controls.BindableProperty TitleViewProperty;
 staticval mutable TitleViewProperty : Microsoft.Maui.Controls.BindableProperty
Public Shared ReadOnly TitleViewProperty As BindableProperty 

字段值

注解

在 Windows 上,TitleView 将显示在 MauiToolbar 控件的内容区域中。 默认情况下,内容区域的宽度自动调整为内容的大小,其余区域可用于工具栏命令。 这是为了支持命令的默认特定于 Windows 的动态溢出功能。 如果用户希望 TitleView 占用工具栏命令未使用的所有空间,则需要关闭动态溢出,这可以通过将页面的 SetToolbarDynamicOverflowEnabled PlatformSpecific 调用为 false 来实现:

this.On<WindowsOS>().SetToolbarDynamicOverflowEnabled(false);

适用于