Fluent.Ribbon
Fluent.Ribbon copied to clipboard
RibbonWindow and dotnet 9 and 10 ThemeMode
Adding ThemeMode to the App.xaml or a RibbonWindow.xaml causes the Max, Restore, Close buttons to not be drawn. Actually, .Net 9 and 10 also have these issues with their version of the System.Windows.Controls.RibbonWindow too.
<Fluent:RibbonWindow x:Class="WpfRibbonApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
Title="My first RibbonWindow"
Width="800"
Height="600"
ShowMaxRestoreButton="True"
ShowMinButton="True"
IsAutomaticCollapseEnabled="False"
IsCollapsed="False"
ThemeMode="Dark"
>
<!-- Snip -->
</Fluent:RibbonWindow>
Environment
- Fluent.Ribbon: 11.0.1-alpha0019
- Windows 10
- .NET 9 and 10 preview 2
Please also report this issue in the WPF repo.
It's not a bug in Fluent.Ribbon but in the aggressive theming code from WPF itself.
You can work around this one particular issue by using Style="{DynamicResource Fluent.Ribbon.Styles.RibbonWindow}" on the window.
But there will be more issues regarding backdrop conflicts, glass frame conflicts, immersive mode conflicts, theme sync conflicts (you'll have to sync themes yourself as the ThemeManager from ControlzEx does not integrate the new theming from WPF yet).