-
Notifications
You must be signed in to change notification settings - Fork 51
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
🧪 [Experiment] TokenView #427
Comments
I have noticed a few small things: The corner radius could not be overwritten uniformly and was defined differently than in the standard. Definition of TokenItemCornerRadius <x:Double x:Key="TokenItemCornerRadius">16</x:Double> <CornerRadius x:Key="ProgressBarCornerRadius">1.5</CornerRadius> |
@jp-weber Great feedback! I'll have a look at this! EDIT: @jp-weber issues are now resolved in the latest version. |
Is it possible to set an item source for this control? |
Yep.. see a sample here: https://github.com/CommunityToolkit/Labs-Windows/blob/main/components/TokenView/samples/TokenViewItemsSourceSample.xaml |
Question: why is radius = 16? Generally, controls would use 8. It looks nice and semi-circle with this size, but what if the OS uses a bigger font size? (Not to be confused with general scaling) |
It's implemented according to the design specification per Windows Visual Library (Figma). It can be easily styled by overriding the |
Thanks you are right. I hadn't thought about that at all and was focused on the TokenItem because I wanted to bind 'IsSelected', which is of course feasible with the ListViewBase with SelectedItems. |
Approved from Discussion
#323
Problem Statement
An easy way to visualize filters / selected data / options.
Overview
This experiment adds the following components:
Using
You can try it out via the NuGet Packages here:
Read more about Preview Packages here.
Code
Result
Documentation & samples
https://github.com/CommunityToolkit/Labs-Windows/tree/main/components/TokenView/samples
Additional info
No response
Implementation Requirements
Tested Platforms
Technical Review
Community Help?
None
The text was updated successfully, but these errors were encountered: