-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update to WinUI 2.4 #3291
Update to WinUI 2.4 #3291
Conversation
Thanks michael-hawker for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
@azchohfi are we maybe missing a reference to the ValueTuple or something or should I just down-grade it back? |
Thats what is looks like. Does the same 3 tests fails on your box when you run the tests? |
@azchohfi good call, it's weird I'm getting different but similar errors there. I'll take a look, grr. |
Thanks @azchohfi I'll look at this last TODO part so we can finalize this: https://github.com/windows-toolkit/WindowsCommunityToolkit/pull/3291/files#diff-3cb108bbfe147427fb6b9a3f93d89cc7R130 |
@@ -125,7 +126,7 @@ private async void ShowSamplePicker(Sample[] samples = null, bool group = false) | |||
|
|||
private void NavView_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs args) | |||
{ | |||
if (args.InvokedItem is SampleCategory category) | |||
if (args.InvokedItem is FrameworkElement fe && fe.DataContext is SampleCategory category) |
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.
Did this never work? Or was there a breaking change that replaced the item with the element?
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.
They changed something in WinUI 2.4, I'm a bit concerned by this. We also have a custom style, so I'm not sure if it has something to do with 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.
@ranjeshj should we be concerned here? @anawishnoff @YuliKl
Or is this just because we have a fraken-template now?
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.
@ojhad might be able to give more context on this
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.
@michael-hawker can you please file a bug in WinUI. You should not have to make this change.
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.
Yup, thanks @ranjeshj, I'll do a quick test in the morning to see if I see the same behavior in the default template, if so I'll file a bug. If not, then it must be something in our template, so I'll try from fresh and see if I still see the issue in our environment.
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.
@ranjeshj @ojhad @anawishnoff Yes, this indeed a regression on 2.4 causing this to break. I have an isolated repro without custom styling and detailed information in the new bug I filed here in the WinUI repo.
I'd expect this to break pretty much anyone using NavigationView
from MUX upgrading to 2.4. Is this something you'd hotfix, and if so, what would the turn-around time be for that? Thanks!
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.
Also, if you do, I'd suggest unlisting the 2.4.0
and 2.4.2
packages on NuGet after to prevent accidental updates?
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.
@azchohfi I thought we had a Keyboard focus issue in the top nav, but it's another bug in the NavigationView control as well (in both 2.3 and 2.4). I filed another issue on WinUI here for that. FYI @ranjeshj @anawishnoff @ojhad.
Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj
Outdated
Show resolved
Hide resolved
This PR has been marked as "needs attention 👋" and awaiting a response from the team. |
@azchohfi made updates. We may want to completely re-work the top-level nav to not use as much custom styling, but that can come later and/or if needed for keyboard accessibility (as I am seeing other odd behavior there). |
This PR has been marked as "needs attention 👋" and awaiting a response from the team. |
Its looking good. |
Thanks @azchohfi! Since we found an issue in WinUI, should we merge this as is and fix later if they release a new version OR should we hold??? |
@michael-hawker I would say hold until a new version comes if they can get it out the door quickly. |
d150baf
to
54b9861
Compare
Updated this PR, we still have some TokenizingTextBox style issues, but no worse than where it was before this PR. This should be good to go now if we want to take it or see if we can get a WinUI update before we close out the release? |
I think it is too risky to wait for an update at this point (the reported issue mentions it will ship by 2.5 only). This is a clean workaround, which is good enough for now. We can push a minor update if this is fixed on WinUI later. |
@azchohfi makes sense, it's only the sample app anyway, so it should be fine. This should guard if the store updates the package for us. |
Think this is ready to go. @Kyaa-dost do you want to take the sample app for a spin from this PR and see if you notice any major differences/inconsistencies from the store sample app? I think the TokenizingTextBox was the main thing I saw and we still have style work to do there, but that's tracked in a separate issue, and the fix I did in here makes it no worse (even though we have to copy the style). |
@michael-hawker Overall performance looks consistent. The only difference I noticed that this PR comes with additional sections that the current SampleApp lacks... There also has been some reorganizing in the Helpers menu as well. Additional Sections: Brushes (Acrylic Brush, PipelineBrush, Tiles Brush), Extensions (ClipToBounds, Icon Extensions), Helpers (ObservableGroup) State Triggers section, Controls (LayoutItemsRepeater) |
Thanks @Kyaa-dost, yeah, that's just all the new things we've added this release, so those are expected :) |
@Kyaa-dost want to sign-off on the review? However, we should review and merge #3310 first, so I can resolve merge conflicts here first. |
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.
SampleApp is performing as expected 🚀
I'm going to merge this PR in now, as I should be able to forward fix the TokenizingTextBox+WinUI Style gap after some great help from @StephenLPeters, and it'll be easier to do that and test on top of the changes from @marcpems we merged earlier and having WinUI at the latest. I'll create a new PR for those style fixes. |
Fixes #3288
Updates/Consolidates NuGet dependencies (not sure if I got all of them?), also updates to WinUI 2.4 which required Sample App Changes.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
TODO