-
Notifications
You must be signed in to change notification settings - Fork 52
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
Ribbon #546
Ribbon #546
Conversation
It should be easy to combine the two. The |
So you would use the Selected SelectorBarItem to load in a Ribbon? I guess the Collection of Ribbons should be virtualised, so when switching to the Active Ribbon, doesn't keep them loaded? Or should all Ribbons be loaded by this theoretical Control, to enable smooth switching? I guess this is the performance aspect I am asking about |
i suppose no, the CPP file in Windows App Sdk source code dosent have a disppose method,but icon and text block resources should be autumatically disposed by XAML frame. I didnt take a test. |
Some build errors:
Look similar between UWP/WinUI3, looks like something going on with Uno. I think Uno requires all UI classes to be partial for the generators to work, so probably just that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, nothing too critical I don't think, but some suggestions/questions.
<Page.Resources> | ||
<ResourceDictionary Source="ms-appx:///CommunityToolkit.WinUI.Controls.Ribbon/RibbonStyle.xaml" /> | ||
</Page.Resources> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Arlodotexe know what might be going on here, this seems weird as we haven't seen this with other controls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Generic.xaml
file is present and working for the src
project, but the Generic.xaml
file isn't present in the samples
project. It needs to be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to implement these changes myself, didn't seem to help 🤔
No other component is using a Generic.xaml
file in the sample project, it seems like something else is happening here. Investigating...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, all the existing xaml files (resource dictionaries, controls, etc) are backed by a cs file, except for this new one. We might be auto-importing backed xaml/cs files somewhere in our tooling, but not the xaml files alone. Still investigating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see how it works in a package and we can do a separate fix, if needed. Going to squash and merge this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- As a reminder, it might be also better to have a small ‘Expand’ button onto the bottom right of the label as Office apps have.
What?
Adding the
Ribbon
control to the toolkit.See #544 and #545 for more details.
How?
I'm adding the following components to the toolkit:
Usage
Result