-
Notifications
You must be signed in to change notification settings - Fork 703
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
Proposal:Will the WinUI team bring other control template styles to the SelectorBar control in the future? #9390
Comments
This comment was marked as resolved.
This comment was marked as resolved.
The wrapper it uses internally is not listviewbase but itemsview (winui3 specific) |
I used a copy paste from winui 3 v1.5 source code, give it a try and see is it working or not? |
Thanks a lot |
Hi @Gaoyifei1011
Also we can play with ItemsView Layout and we can add more options (currently ItemsView Layout is StackLayout) there is two known issue:
invalid Stretch Mode: this is valid Stretch Mode: for Stretch Mode there is EqualPanel in CommunityToolkit, But since we are using ItemsView, it seems that we cannot use this panel and I think we should use other layouts. Can you Fix this two Bug? |
Thank you very much for your contribution. I checked the your code, if you want to become which of the following vaild style, you need to modify SelectorBarItem control style, corresponding DefaultSelectorBarItemStyle, Controlling their width and height is not in the SelectorBar control, but in the SelectorBarItem. This is a simple tweak I made. You can use the real-time visual tree to find the basic controls used inside the control and fine-tune them according to the control template. |
@Gaoyifei1011 can you upload your demo? changing column Width does not work for me🤔 |
I'm currently testing the I also noticed that
|
It is better to create a new issue for it. |
You need to pay attention to the changes in the SelectorBarItemStyle. I changed the width of the SelectorBarItem in order to make the effect more prominent. I also made a small adjustment to the position of the StackPanel where the icon text in the control belongs. I wonder if this effect meets your expectations? |
@Gaoyifei1011 Can you specify what |
You can remove |
@ghost1372 I already did, but I was curious if this was a Lottie library or something similar. |
not related to Lottie. |
|
Thank you @Gaoyifei1011 |
Is there a way to set the ItemsPanelTemplate in SelectorBar? I want to stop using StackPanel. |
Proposal: Will the WinUI team bring other control template styles to the SelectorBar control in the future?
Summary
Rationale
Currently, in Winui 3 1.5, the WinUI team has added a new SelectorBar control that looks and functions similar to the PivotSegmentedStyle in the Segmented control in the community toolkit. Other control template styles are included in the Segmented control in the community toolkit. Will any other styles be provided for the SelectorBar control in a future release?
目前,在 Winui 3 1.5 时,WinUI 团队新添加了一个 SelectorBar 控件,这个控件的外观和功能类似于社区工具包 Segmented 控件的 PivotSegmentedStyle,在社区工具包的 Segmented 控件还包括其他控件模板样式,未来版本中是否会为 SelectorBar 控件提供 Segmented 控件其他的样式呢?
https://learn.microsoft.com/zh-cn/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.selectorbar?view=windows-app-sdk-1.5
Scope
Important Notes
ScreenShots
Open Questions
The text was updated successfully, but these errors were encountered: