Fix crash on disabled TitleBarPaneToggleButton style#10741
Fix crash on disabled TitleBarPaneToggleButton style#10741Zakariathr22 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
Hey @Zakariathr22 - I am mirroring your changes in the internal repo and adding tests for it too. This will be added to the next release. Does that sound good? |
Sounds good 👍 |
|
@beth-panx any ETA? |
The changes are checked in to the winui3/main branch in the correct file now. This will make it to WASDK2.0 release as technically it would be an API change. |
|
Hopefully in the future we'll see the community contributions be merged instead and give credit where credit is due. |
Definitely! After the OSS phase 3 completion, we should be able to do that. Right now, I am just tagging them :/ |
That doesn't make sense to me. This simply looks like a typo fix. Hope this is merged in asap, because many projects are waiting for this! |
|
@beth-panx any update? |
This change is already merged in main branch. The release of the SDK goes through many review processes. Packaged version will likely be out end of March. |
Fixes
PR Type
Please check the type of change your PR introduces:
Description
Fixes a crash when disabling the
TitleBarPaneToggleButtonStyle.The crash was caused by a storyboard targeting an invalid property (
BackgroundonAnimatedIcon) and by the absence of aTitleBarPaneToggleButtonForegroundDisabledresource.Current Behavior
AnimatedIcondoes not supportBackground, and the style references a missing resource.New Behavior
RootGrid.Backgroundinstead ofAnimatedIcon.Background.TitleBarPaneToggleButtonForegroundDisabledhas been added.Motivation and Context
This change prevents application crashes when the button is disabled.
How Has This Been Tested?
Screenshots (if appropriate):