fluentribbon / Fluent.Ribbon

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

Update to v10 results in a "black screen" #1130

Closed robertmuehsig closed 1 year ago

robertmuehsig commented 1 year ago

We have a larger application, which I want to update to v10. Update via NuGet & build/compile without any errors, but the resulting window is "black":

image

I didn't found any big difference between our application and your sample app. I guess the reason might be, that you moved some resources.

I also included this in our App.xaml:

<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Class="XXX.App">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- Without this we may face some DynamicResources bugs (e.g. https://github.com/fluentribbon/Fluent.Ribbon/issues/711)  -->
                <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

</Application>

The application worked with the most recent Fluent.Ribbon - maybe you have an idea where to look.


Environment

batzen commented 1 year ago

Almost all resource keys were renamed. That also includes "RibbonWindowStyle" which is now "Fluent.Ribbon.Styles.RibbonWindow".

For a comparison of all changes to resource keys you can have a look at https://github.com/fluentribbon/Fluent.Ribbon/commit/ee900fd9097cb2ce79b17c39f4416e4170764fc6?diff=split

Are there any warnings in the output window regarding missing resources?

robertmuehsig commented 1 year ago

No warnings. I will try to reproduce it in a "simple app" - I guess we are doing something stupid in our product.

robertmuehsig commented 1 year ago

Ok - this can be closed. We have "Plugins" in our applications and one plugin depended on fluent as well, but I hadn't updated the plugin. Sorry!