Skip to content

Add Segmented list box style#4072

Merged
Keboo merged 3 commits into
MaterialDesignInXAML:masterfrom
corvinsz:feat/SegmentedListBoxStyle
Jun 19, 2026
Merged

Add Segmented list box style#4072
Keboo merged 3 commits into
MaterialDesignInXAML:masterfrom
corvinsz:feat/SegmentedListBoxStyle

Conversation

@corvinsz

Copy link
Copy Markdown
Member

adds a new style SegmentedListBox to have this "switch" style selection of n items:
image

corvinsz and others added 3 commits June 17, 2026 19:51
Introduces MaterialDesign.Brush.ListBox.SegmentedBackground to allow independent styling of SegmentedListBox backgrounds. Previously, these controls shared the Chip background brush. This change also includes updates to the theme generator and demo applications to utilize the new resource.
@Keboo

Keboo commented Jun 19, 2026

Copy link
Copy Markdown
Member

Push some changes to it. Overall looks good and I think I am good merging it.

One thought I had was on this style not supporting scrolling/virtualization. But I am not sure if anyone would use it and expect that behavior.

@corvinsz

Copy link
Copy Markdown
Member Author

I considered scrolling and virtualization, but intentionally left them out (maybe I should have mentioned this). I think this style is mainly suited for a small number of options rather than large datasets. We can always add support for them later if a need arises.

Your changes LGTM, happy to merge.

@Keboo Keboo added this to the 5.3.3 milestone Jun 19, 2026
@Keboo Keboo merged commit 9319425 into MaterialDesignInXAML:master Jun 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants