Maui
Maui copied to clipboard
fixed sample application crashed with MediaElement for Windows
Sample application crashed in MediaElement page when the "Tab" key switches the active state to the "Change Aspect" button, and then the "Space" key executes it. In this case, the problem is due to the DisplayActionSheet call from the Microsoft.Maui.Controls package, it should display the window and return the pressed button, but instead of the window, it immediately returns null, which was not handled in the Sample project.
@dotnet-policy-service agree
Adding the blocked
tag.
Do not merge this PR until Microsoft.Maui.Controls v8.0.21 is included in the Visual Studio (stable) release.
Dang - in Microsoft.Maui.Controls v8.0.21
there is a breaking change in how Application
is loaded which is breaking our Unit Tests. There's an internal field in Application
that needs to be initialized before our tests can run: readonly Lazy<IResourceDictionary> _systemResources;
. Currently it is throwing a NullReferenceException
.
Dang - in
Microsoft.Maui.Controls v8.0.21
there is a breaking change in howApplication
is loaded which is breaking our Unit Tests. There's an internal field inApplication
that needs to be initialized before our tests can run:readonly Lazy<IResourceDictionary> _systemResources;
. Currently it is throwing aNullReferenceException
.
I was able to use reflection as a workaround.
The root cause of this bug fix is that .NET MAUI is now using partial classes for Application
, and the .NET Standard implementation of Application
doesn't initialize the _systemResources
field.
Ok - there's one more bug we need to fix with the AppTheme test now.
I just spent the last few hours digging into it and couldn't figure it out. @olekssokol any chance you could take a look?
Yes, of course, I'll take a look at it