Skip to content

Proposal: TabView Parity with WCT TabView #2007

@stmoy

Description

@stmoy

Proposal: TabView Parity with WCT TabView

Summary

The WinUI TabView is missing two main features relative to the Windows Community Toolkit TabView:

Tab Width Behavior: Compact API Link

The unselected tabs show only their icon and no text until they are selected.

image

Overlay Close Button API Link

The x-to-close button is shown when the user hovers over the tab.

image

image

Rationale

  • The WinUI TabView is so close to being feature complete relative to the Windows Community Toolkit TabView. Once WinUI TabView is at parity, we can deprecate the WCT TabView.

Scope

Capability Priority
Tab Width Behavior: Compact Must
Overlay Close Button Must

Important Notes

The proposed API for these properties is outlined in #304, which is the initial proposal for TabView.

Specifically, the following APIs are proposed:

Tab Width Behavior: Compact

Existing enum (with new value) and existing property

TabWidthMode : {Equal, SizeToContent, Compact}

<TabView TabWidthMode="Compact" />

Overlay Close Button

New enum and property

CloseButtonOverlay : {Auto, OnHover, Persistent}

<TabView CloseButtonOverlay="OnHover" />

Open Questions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions