Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TokenView] Fix crash due to unknown brushes #423

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

niels9001
Copy link
Collaborator

@niels9001 niels9001 commented Apr 17, 2023

Should Fix #424

As @WillyWoe described in #421, TokenView crashes whenever a TokenViewItem is set to IsRemoveable. This shows a remove button that uses brushes that were defined in the Toolkit Labs Gallery project, not in WinUI. That means it would crash.

This PR introduces changes so that it uses the right brushes. No visual changes.

Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

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

LGTM, though still only tested in app, will get OP to test new package before closing out issue completely.

@michael-hawker michael-hawker merged commit c55b3a8 into main Apr 17, 2023
@delete-merged-branch delete-merged-branch bot deleted the niels9001/tokenview-fix branch April 17, 2023 21:36
@michael-hawker michael-hawker added experiment 🧪 Used to track issues that are experiments (or their linked discussions) issue 🧪 Used for tracking an Issue/Bug/Feature of an open Experiment/Component labels Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment 🧪 Used to track issues that are experiments (or their linked discussions) issue 🧪 Used for tracking an Issue/Bug/Feature of an open Experiment/Component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TokenView uses Brush from Sample App
2 participants