From c6407c3a6a151f12ac9a30870b00e6be6a71cb02 Mon Sep 17 00:00:00 2001 From: BagavathiPerumal Date: Mon, 20 Apr 2026 15:51:48 +0530 Subject: [PATCH] Fix-30254-Added the missing `HasMenuBarContent` property to `MauiToolbar` that was referenced in `RootNavigationView.IsHeaderContentEmpty()` but never defined, causing a CS1061 build error on Windows. --- src/Core/src/Platform/Windows/MauiToolbar.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/src/Platform/Windows/MauiToolbar.xaml.cs b/src/Core/src/Platform/Windows/MauiToolbar.xaml.cs index fce0c42d24fa..f01c28b4e361 100644 --- a/src/Core/src/Platform/Windows/MauiToolbar.xaml.cs +++ b/src/Core/src/Platform/Windows/MauiToolbar.xaml.cs @@ -191,6 +191,8 @@ void UpdateIconColor() } } + internal bool HasMenuBarContent => _menuBar is not null && _menuBar.Items.Count > 0; + internal void SetMenuBar(MenuBar? menuBar) { _menuBar = menuBar;