From 6d038582a73c9deb75a32b08cc5962a78955b721 Mon Sep 17 00:00:00 2001 From: Kevin Bost Date: Mon, 30 Mar 2026 17:10:53 -0700 Subject: [PATCH 1/3] Fix ToolBar overflow button background not inheriting from ToolBar Change the overflow button styles to bind their Background to the ancestor ToolBar's Background instead of hardcoding the theme resource. This ensures the overflow button matches when a custom Background is set on the ToolBar. Changes: - Both vertical and horizontal overflow button styles now use a RelativeSource binding to the parent ToolBar's Background - Overflow popup border uses TemplateBinding to inherit Background - Removed redundant Background reset in the vertical orientation trigger Fixes #3694 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Themes/MaterialDesignTheme.ToolBar.xaml | 7 +++--- .../WPF/ToolBars/ToolBarTests.cs | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToolBar.xaml b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToolBar.xaml index a043a77973..0c554972f2 100644 --- a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToolBar.xaml +++ b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToolBar.xaml @@ -17,7 +17,7 @@