Skip to content

SelectorBar Not Showing Selected Item on Initial Load in SelectorBarPage #1766

@Zakariathr22

Description

@Zakariathr22

Which version of the app?

WinUI 3 Gallery

Description

In SelectorBarPage, the SelectorBar does not visually highlight the initially selected item when the page is first loaded. Even though an item is marked as IsSelected="True" in XAML, the UI does not reflect this selection.

Expected Behavior

  • When the page loads, the first item in the SelectorBar should appear selected.
  • The associated ItemsView should display the corresponding collection based on the selected item.

Actual Behavior

  • The ItemsView does not show the expected initial selection.
  • The user has to manually select an item for the UI to update.

Screenshots

Image

Windows version

Windows 11 23H2 (22631)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions