fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.48k stars 515 forks source link

Not enough quota when using Ribbon inside BusyIndicator (or just using IsEnabled = false in some cases) #1164

Closed AlexeiScherbakov closed 6 months ago

AlexeiScherbakov commented 10 months ago

When Ribbon is used as Content inside BusyIndicator pattern (Content, Overlay rectangle, BusyContent) on Windows 10 'Not enough quota' exception is throwing inside WPF. On Windows 11 all works as expected.

Exception is raised when ContentControl inside RibbonWindow where Ribbon is located received false value to IsEnabled property. RibbonWindow->BusyIndicator->Grid->Ribbon

I tested 9,10 Fluent.Ribbon versions - all show same error on Windows 10 (22.H2 10.0.19045.3393)

This can be related to https://github.com/fluentribbon/Fluent.Ribbon/issues/634 Also I found description of this type of problems here and here

For workaround this BusyIndicator should not disable Content, just hide it with overlay rectangle.

Environment

batzen commented 10 months ago

If it works on Windows 11, but not on Windows 10 it's most likely a bug in .NET or Windows itself. There is no Windows version specific code in Fluent.Ribbon itself.