Skip to content

Fix CollectionView Header is not visible when ItemsSource is not set and an EmptyView is set in iOS, Mac platform#34989

Merged
kubaflo merged 9 commits into
dotnet:inflight/currentfrom
KarthikRajaKalaimani:fix-34897
Apr 16, 2026
Merged

Fix CollectionView Header is not visible when ItemsSource is not set and an EmptyView is set in iOS, Mac platform#34989
kubaflo merged 9 commits into
dotnet:inflight/currentfrom
KarthikRajaKalaimani:fix-34897

Additional scenario added in test case and improved the fix.

05ee0fb
Select commit
Loading
Failed to load commit list.
Azure Pipelines / maui-pr (Build .NET MAUI Build Windows (Debug)) failed Apr 16, 2026 in 12m 9s

Build .NET MAUI Build Windows (Debug) failed

Annotations

Check failure on line 285 in src\Core\src\Platform\Windows\RootNavigationView.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr (Build .NET MAUI Build Windows (Debug))

src\Core\src\Platform\Windows\RootNavigationView.cs#L285

src\Core\src\Platform\Windows\RootNavigationView.cs(285,37): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'MauiToolbar' does not contain a definition for 'HasMenuBarContent' and no accessible extension method 'HasMenuBarContent' accepting a first argument of type 'MauiToolbar' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 845 in .packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr (Build .NET MAUI Build Windows (Debug))

.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets#L845

.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(845,9): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""D:\a\_work\1\s\.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\..\tools\net6.0\..\net472\XamlCompiler.exe" "D:\a\_work\1\s\artifacts\obj\Core\Debug\net10.0-windows10.0.20348.0\\input.json" "D:\a\_work\1\s\artifacts\obj\Core\Debug\net10.0-windows10.0.20348.0\\output.json"" exited with code 1.

Check failure on line 285 in src\Core\src\Platform\Windows\RootNavigationView.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr (Build .NET MAUI Build Windows (Debug))

src\Core\src\Platform\Windows\RootNavigationView.cs#L285

src\Core\src\Platform\Windows\RootNavigationView.cs(285,37): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'MauiToolbar' does not contain a definition for 'HasMenuBarContent' and no accessible extension method 'HasMenuBarContent' accepting a first argument of type 'MauiToolbar' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 845 in .packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr (Build .NET MAUI Build Windows (Debug))

.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets#L845

.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(845,9): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""D:\a\_work\1\s\.packages\microsoft.windowsappsdk.winui\1.8.251105000\buildTransitive\..\tools\net6.0\..\net472\XamlCompiler.exe" "D:\a\_work\1\s\artifacts\obj\Core\Debug\net10.0-windows10.0.19041.0\\input.json" "D:\a\_work\1\s\artifacts\obj\Core\Debug\net10.0-windows10.0.19041.0\\output.json"" exited with code 1.