语言

TabView.IsAddTabButtonVisible 属性

定义

获取或设置一个值,该值指示添加选项卡按钮 (+) 是否可见。

public:
 property bool IsAddTabButtonVisible { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsAddTabButtonVisible();

void IsAddTabButtonVisible(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsAddTabButtonVisible();

void IsAddTabButtonVisible(bool value);
public bool IsAddTabButtonVisible { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool IsAddTabButtonVisible { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
var boolean = tabView.isAddTabButtonVisible;
tabView.isAddTabButtonVisible = boolean;
Public Property IsAddTabButtonVisible As Boolean

属性值

Boolean

bool

true 如果“添加”选项卡按钮(+)可见,则为 ;否则,为 false. 默认值为 true。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

注解

有关详细信息、设计指南和代码示例,请参阅 Tab 视图。

适用于

另请参阅