Skip to content

windows-reactor: expose TabView add-tab button (IsAddTabButtonVisible + AddTabButtonClick) #4498

@AndrewBeshay

Description

@AndrewBeshay

Suggestion

Surface WinUI TabView's built-in add-tab button through the windows-reactor
TabView builder

TabView shows its own "+" button at the end of the tab strip by default, but
the reactor builder gives you no way to handle a click on it — you only get
on_selection_changed and on_tab_close_requested. So if you build a tab set
where users can add and close tabs, that built-in "+" just sits there doing
nothing, and you end up adding your own separate "Add" button somewhere else.

You can see this in the gallery's "Dynamic Tabs" sample: it drives the tab
count with two separate button("Add Tab") / button("Remove Tab") controls
underneath the TabView, rather than using the native "+" (and close) buttons
the control already draws.

Unless I'm wrong and such a way exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions