Skip to content

Add SegmentedItemBackgroundBrushTransition resource#812

Open
AndrewKeepCoding wants to merge 5 commits into
CommunityToolkit:mainfrom
AndrewKeepCoding:fix-segmenteditem-background-issue
Open

Add SegmentedItemBackgroundBrushTransition resource#812
AndrewKeepCoding wants to merge 5 commits into
CommunityToolkit:mainfrom
AndrewKeepCoding:fix-segmenteditem-background-issue

Conversation

@AndrewKeepCoding

Copy link
Copy Markdown
Member

Fixes #305

Adds a resource to override the BackgroundTransition to avoid conflicts with the VisualState changes when SegmentedItem doesn't use the default Background.

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

@niels9001

Copy link
Copy Markdown
Collaborator

Great catch! Do you have a small screencapture of the new effect?

@AndrewKeepCoding

Copy link
Copy Markdown
Member Author

Great catch! Do you have a small screencapture of the new effect?

<Page.Resources>
    <win:BrushTransition x:Key="SegmentedItemBackgroundBrushTransition" Duration="0:0:0.000" />
</Page.Resources>
Recording.2026-01-06.222436.mp4

@Arlodotexe Arlodotexe added the components::controls::segmented A common UI control to configure a view or setting. label Jan 7, 2026
@Arlodotexe Arlodotexe added the enhancement New feature or request label Jan 7, 2026

@0x5bfa 0x5bfa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm this resolve the issue.

20260617-1339-04.5683947.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

components::controls::segmented A common UI control to configure a view or setting. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmented Control Items Color Animation Issue

4 participants