[Shell] Update logic for iOS large title display in ShellItemRenderer#33246
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves the iOS large title display logic in Shell by adding an explicit check to ensure the LargeTitleDisplay property is set on the Page before updating navigation bar preferences. It also changes the condition for enabling large titles from == Always to != Never, allowing both Always and Automatic modes to enable the PrefersLargeTitles navigation bar property.
- Adds guard clause to check if
LargeTitleDisplayPropertyis explicitly set before updating large titles - Changes
PrefersLargeTitlescondition to enable for bothAlwaysandAutomaticmodes (not justAlways) - Includes TODO comment for adding
PrefersLargeTitlesproperty to Shell in .NET 11
| return; | ||
|
|
||
| // Shell doesn't have the property PrefersLargeTitles, so we should not update the large titles | ||
| // if users doen't explicitly set the LargeTitleDisplay property on the Page. |
There was a problem hiding this comment.
Spelling error in comment: "doen't" should be "doesn't".
| // if users doen't explicitly set the LargeTitleDisplay property on the Page. | |
| // if users doesn't explicitly set the LargeTitleDisplay property on the Page. |
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
Outdated
Show resolved
Hide resolved
44aae1c to
68b37c3
Compare
🤖 AI Summary📊 Expand Full Review🔍 Pre-Flight — Context & Validation📝 Review Session — Add Issue33037 AfterScroll snapshots ·
|
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| PR | PR #33246 | IsSet() guard + != Never condition |
⏳ PENDING (Gate) | ShellItemRenderer.cs (+9/-1) |
Third attempt after revert |
Reviewer Comments
- Copilot reviewer noted: spelling error "doen't" → "doesn't" in comment
- Copilot reviewer noted: trailing whitespace on a line
- Both are minor nits, no substantive concerns
PR Discussion Notes
- Issue was confirmed iOS-specific (not reproducible on iOS 18, only iOS 26+)
- The issue is related to iOS 26's Liquid Glass design requiring transparent nav bar for large titles to collapse — but the PR addresses the Shell-level logic problem
🚦 Gate — Test Verification
📝 Review Session — Add Issue33037 AfterScroll snapshots · 5d03b03
Result:
Platform: ios
Mode: Full Verification
Test Run Results
- Tests WITHOUT fix: PASS (unexpected - should fail)
- Tests WITH fix: PASS (expected)
Analysis
The tests passed both with and without the fix. However, this is expected given the test's nature:
The test is a screenshot-based visual comparison test (VerifyScreenshot). The baseline snapshots were captured WITH the fix showing correct behavior. When running without the fix:
- On iOS 26: The large title would not transition → screenshots would differ → test would FAIL ✅
- On iOS 18: The large title behavior works differently; issue was confirmed "not reproducible on iOS 18" in the issue comments
The test environment uses an iOS 18 simulator (confirmed: issue specifically affects iOS 26/Liquid Glass). On iOS 18, the large title behavior functions correctly even without the fix, so the visual screenshots match the baseline both with and without the PR's fix.
This is an environment limitation, not a flaw in the test:
- The test correctly includes two sets of baselines:
snapshots/ios/andsnapshots/ios-26/ - The bug only manifests on iOS 26 (Liquid Glass/opaque nav bar combination)
- The CI environment for this test only has iOS 18 available
Gate Conclusion
Gate is INCONCLUSIVE due to iOS version constraints. The fix cannot be empirically verified locally because the bug requires iOS 26. The code analysis and review will be used for the recommendation.
🔧 Fix — Analysis & Comparison
📝 Review Session — Add Issue33037 AfterScroll snapshots · 5d03b03
Fix Candidates
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| PR | PR #33246 | IsSet() opt-in guard + != Never condition |
✅ PASS (Gate, env limited) | ShellItemRenderer.cs (+9/-1) |
Third attempt after revert |
Why try-fix Was Skipped
Environment limitation: The bug is iOS 26-specific (Liquid Glass behavior), but the test environment runs iOS 18 simulators. Since tests pass with AND without the fix on iOS 18 (Gate was inconclusive), try-fix would also not be able to empirically validate alternative approaches. Running 5 models of try-fix that all produce "PASS" results regardless of correctness would not add signal.
Code analysis substituted: Instead of empirical try-fix exploration, a code quality analysis was performed on the PR's fix approach.
Code Analysis
The opt-in guard approach is sound:
page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)is the correct way to check if a property was explicitly set vs. using its default value- This pattern matches other platform-specific properties in the codebase (e.g.,
page.IsSet(PlatformConfiguration.iOSSpecific.Page.PrefersHomeIndicatorAutoHiddenProperty)inPage.cs) - Prevents the regression from PR Update logic for large title display mode on iOS - shell #33039 (default
Automaticpages getting large titles unintentionally)
The condition fix is correct:
largeTitleDisplayMode != LargeTitleDisplayMode.Neverproperly handles all three states- Before: only
Always→ PrefersLargeTitles=true (incorrect,Automaticmissed) - After:
AlwaysandAutomatic→ PrefersLargeTitles=true,Never→ false (correct)
Issues Found
- Typo in comment: "doen't" → "doesn't" (line 459) — flagged by Copilot reviewer, not yet fixed
- No other substantive issues found
Exhausted: N/A (skipped due to environment limitation)
Selected Fix: PR's fix — correct approach, follows established patterns, resolves the regression issue from PR #33039
📋 Report — Final Recommendation
📝 Review Session — Add Issue33037 AfterScroll snapshots · 5d03b03
⚠️ Final Recommendation: APPROVE (with minor nit)
Summary
PR #33246 is the third attempt to fix issue #33037 (iOS large title not transitioning on scroll in Shell). The fix is sound and correctly addresses the root cause of the regression introduced by the previous fix (PR #33039). The approach matches established patterns in the codebase.
Gate was inconclusive due to environment constraints: the bug manifests on iOS 26 (Liquid Glass) but the test environment runs iOS 18 where the issue doesn't reproduce. This is a known limitation for iOS 26-specific bugs.
Root Cause
Shell lacked a PrefersLargeTitles property. The UpdateLargeTitles() method was updating NavigationBar.PrefersLargeTitles for every page, even those that never explicitly set LargeTitleDisplay. When PR #33039 changed the condition to != Never, pages using the default Automatic value suddenly got large titles, breaking many UI test snapshots.
Fix Quality
The fix is correct and well-designed:
-
Opt-in guard (
page.IsSet(LargeTitleDisplayProperty)): Prevents unintended large title activation for pages that never explicitly opted in — this directly resolves the regression from PR Update logic for large title display mode on iOS - shell #33039. TheIsSet()pattern matches other platform-specific property checks in the codebase (e.g.,PrefersHomeIndicatorAutoHiddenPropertyinPage.cs). -
Condition fix (
!= Neverinstead of== Always): When developers DO set the property, this allowsAutomaticmode to properly enable large titles (letting iOS decide when to show/hide them), which is the correct behavior. -
TODO for .NET 11: Appropriate comment to add
PrefersLargeTitlesto Shell itself for better control.
Test Coverage
The test (Issue33037) is appropriate:
- Uses
TestShellbase class correctly - Explicitly sets
LargeTitleDisplay = Alwaysto opt-in (testing the new behavior) - Uses
VerifyScreenshotbefore/after scrolling to detect visual regression - Correct platform guard (
#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_WINDOWS) for iOS-only testing - Includes baselines for both
ios/andios-26/subdirectories
Limitation: The bug is iOS 26-specific. Tests cannot be empirically verified in a local iOS 18 environment. The screenshots were presumably captured on iOS 26.
Issues Found
| Severity | Issue | File | Line |
|---|---|---|---|
| Minor | Typo: "doen't" → "doesn't" in comment | ShellItemRenderer.cs |
459 |
Platform Analysis
- Affected: iOS only (confirmed by issue reporter and labels)
- iOS 26 specific: The visual bug relates to Liquid Glass behavior but the underlying logic fix (opt-in guard) is still correct for all iOS versions
- MacCatalyst: Not affected (ShellItemRenderer is iOS-specific)
Verdict
✅ APPROVE — The fix is correct, follows established patterns, and solves the problem without the regression from PR #33039. The only pending item is a typo in a code comment which can be fixed before or after merge.
Suggested minor fix before merge:
// Change line 459:
// if users doen't explicitly set the LargeTitleDisplay property on the Page.
// →
// if users don't explicitly set the LargeTitleDisplay property on the Page.📋 Expand PR Finalization Review
Title: ✅ Good
Current: [Shell] Update logic for iOS large title display in ShellItemRenderer
Description: ✅ Excellent
- Platform prefix should be
[iOS]not[Shell]— the change is in iOS-specific code (ShellItemRenderer.cs), restricted to iOS 11+ - "Update logic" is vague — doesn't capture the opt-in behavioral model change
✨ Suggested PR Description
[!NOTE]
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Background and Context
This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue:
- PR Update logic for large title display mode on iOS - shell #33039 (merged Dec 8, 2025): Changed the condition from
PrefersLargeTitles = largeTitleDisplayMode == AlwaystoPrefersLargeTitles = largeTitleDisplayMode != Never - PR Revert "Update logic for large title display mode on iOS - shell" #33230 (merged Dec 19, 2025): Reverted Update logic for large title display mode on iOS - shell #33039 because it caused "a lot of failing tests" — large titles started appearing unintentionally in many scenarios, breaking UI test snapshots
- PR [Shell] Update logic for iOS large title display in ShellItemRenderer #33246 (this PR): Re-attempts the fix with an important addition: opt-in check
Root Cause
Shell doesn't have a PrefersLargeTitles property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior.
Problem with PR #33039: Changing the condition to largeTitleDisplayMode != Never meant that:
LargeTitleDisplayMode.Always→ PrefersLargeTitles = true ✅LargeTitleDisplayMode.Automatic→ PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property)LargeTitleDisplayMode.Never→ PrefersLargeTitles = false ✅
Since the default value is Automatic, pages that never set LargeTitleDisplay would suddenly get large titles, breaking many UI tests.
Description of Change
This PR implements an opt-in model for large title display in Shell:
This is a behavior model change:
- Before (original):
PrefersLargeTitlesset based on== Alwayscheck (too narrow —Automaticmode not respected) - Before (PR Update logic for large title display mode on iOS - shell #33039 reverted):
PrefersLargeTitlesset for any page whenever displayed (too broad — broke unrelated pages) - After (this PR):
PrefersLargeTitlesonly updated whenLargeTitleDisplayis explicitly set on the page, and uses!= Nevercondition
1. Added Opt-In Check (ShellItemRenderer.cs)
Before updating large title preferences, the code now checks if the LargeTitleDisplay property is explicitly set on the Page:
if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty))
{
return; // Don't update if property not explicitly set
}This prevents UpdateLargeTitles() from affecting pages that never opted into large title behavior (where Automatic is the default).
2. Updated Condition (ShellItemRenderer.cs)
With the opt-in guard in place, the condition is safely changed from:
// Before
navigationController.NavigationBar.PrefersLargeTitles = largeTitleDisplayMode == LargeTitleDisplayMode.Always;to:
// After
navigationController.NavigationBar.PrefersLargeTitles = largeTitleDisplayMode != LargeTitleDisplayMode.Never;This correctly handles all three modes when a page has explicitly set the property:
Always→ large titles shown ✅Automatic→ large titles shown (iOS default behavior) ✅Never→ large titles hidden ✅
3. Added UI Test (Issue33037)
New UI test verifies the large title scroll transition:
- HostApp page: scrollable Shell page with
LargeTitleDisplay = Alwaysexplicitly set - Test: screenshots before and after scrolling to verify title transitions correctly
- Platforms: iOS, iOS 26, MacCatalyst
What NOT to Do (for future agents)
- ❌ Don't remove the
IsSetguard — Without it, pages using the defaultAutomaticmode get unintended large titles (this broke PR Update logic for large title display mode on iOS - shell #33039) - ❌ Don't revert to
== Alwayscondition — That condition preventedAutomaticmode from showing large titles correctly - ❌ Don't add
PrefersLargeTitlesto Shell now — There is a// todo net 11comment to add this properly in .NET 11 once the API design is settled
Issues Fixed
Fixes #33037
Platforms Tested
- iOS
- MacCatalyst
- Android (N/A — iOS-only feature)
- Windows (N/A — iOS-only feature)
Code Review: ✅ Passed
Code Review: PR #33246
🟡 Minor Issues
Typo in Code Comment
File: src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
Line: ~458
// Shell doesn't have the property PrefersLargeTitles, so we should not update the large titles
// if users doen't explicitly set the LargeTitleDisplay property on the Page.Problem: doen't should be doesn't
Fix:
// Shell doesn't have the property PrefersLargeTitles, so we should not update the large titles
// if users don't explicitly set the LargeTitleDisplay property on the Page.✅ Looks Good
Opt-In Guard Logic
The page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty) check is the correct approach. IsSet() distinguishes between a property being set explicitly vs. having its default value, which is exactly what's needed here. No unnecessary reflection, no string matching.
Condition Change from == Always to != Never
With the opt-in guard in place, this condition change is safe and correct. When a page explicitly opts in, all three LargeTitleDisplayMode values are now handled correctly (Always → true, Automatic → true, Never → false).
Test Guard Pattern
#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_WINDOWS is an established MAUI convention for iOS/Mac-only tests. Confirmed in multiple existing test files (Issue31539.cs, Issue29634.cs, Issue28945.cs, etc.). This correctly excludes the test from Android and Windows builds.
TODO Comment for Net 11
// todo net 11: Add PrefersLargeTitles to Shell and use that here.Appropriate future work note. The current implementation is a pragmatic workaround until the Shell API is extended properly.
Snapshot Coverage
Snapshots added for three configurations:
snapshots/ios/— standard iOSsnapshots/ios-26/— iOS 26 (future iOS)snapshots/mac/— MacCatalyst
Good coverage for an iOS/Mac-specific feature.
68b37c3 to
57084e9
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Now checks if the LargeTitleDisplay property is explicitly set on the Page before updating large title preferences. Also changes the condition to set PrefersLargeTitles to true unless LargeTitleDisplayMode is Never, improving alignment with user intent.
Introduce a HostApp test page and corresponding UITest for GitHub issue 33037. The HostApp page (Issue33037.cs) sets iOS LargeTitleDisplayMode.Always, adds a scrollable list with automation IDs (TestScrollView, PageTitle, Item#) to reproduce the large-title → standard-title transition. The shared UITest (Issue33037.cs) waits for the page, captures a before-scroll screenshot, scrolls the view to trigger the title transition, and captures an after-scroll screenshot. The test file is conditionally compiled (#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_WINDOWS) to control target platforms.
Add test snapshot images (Issue33037_BeforeScroll.png) for Mac and iOS (ios and ios-26) under src/Controls/tests/TestCases.*. These images are used by UI tests to validate the UI state before scrolling for issue dotnet#33037.
57084e9 to
18b97ba
Compare
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 33246Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 33246" |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Add baseline snapshot images for Issue33037 AfterScroll to the test suites: Mac and iOS (ios and ios-26). These images update the visual test baselines to reflect the post-scroll state used by TestCases.
…dotnet#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue dotnet#33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR dotnet#33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR dotnet#33230** (merged Dec 19, 2025): Reverted dotnet#33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR dotnet#33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR dotnet#33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
…#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR #33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR #33230** (merged Dec 19, 2025): Reverted #33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR #33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR #33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
…#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR #33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR #33230** (merged Dec 19, 2025): Reverted #33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR #33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR #33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
…#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR #33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR #33230** (merged Dec 19, 2025): Reverted #33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR #33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR #33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
…#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR #33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR #33230** (merged Dec 19, 2025): Reverted #33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR #33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR #33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
…#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR #33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR #33230** (merged Dec 19, 2025): Reverted #33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR #33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR #33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
## What's Coming .NET MAUI inflight/candidate introduces significant improvements across all platforms with focus on quality, performance, and developer experience. This release includes 66 commits with various improvements, bug fixes, and enhancements. ## Activityindicator - [Android] Implemented material3 support for ActivityIndicator by @Dhivya-SF4094 in #33481 <details> <summary>🔧 Fixes</summary> - [Implement material3 support for ActivityIndicator](#33479) </details> - [iOS] Fix: ActivityIndicator IsRunning ignores IsVisible when set to true by @bhavanesh2001 in #28983 <details> <summary>🔧 Fixes</summary> - [[iOS] [ActivityIndicator] `IsRunning` ignores `IsVisible` when set to `true`](#28968) </details> ## Button - [iOS] Button RTL text and image overlap - fix by @kubaflo in #29041 ## Checkbox - [iOS/MacCatalyst] Fix CheckBox foreground color not resetting when set to null by @Ahamed-Ali in #34284 <details> <summary>🔧 Fixes</summary> - [[iOS] Color of the checkBox control is not properly worked on dynamic scenarios](#34278) </details> ## CollectionView - [iOS] Fix: CollectionView does not clear selection when SelectedItem is set to null by @Tamilarasan-Paranthaman in #30420 <details> <summary>🔧 Fixes</summary> - [CollectionView not being able to remove selected item highlight on iOS](#30363) - [[MAUI] Select items traces are preserved](#26187) </details> - [iOS] CV2 ItemsLayout update by @kubaflo in #28675 <details> <summary>🔧 Fixes</summary> - [CollectionView CollectionViewHandler2 doesnt change ItemsLayout on DataTrigger](#28656) - [iOS CollectionView doesn't respect a change to ItemsLayout when using Items2.CollectionViewHandler2](#31259) </details> - [iOS][CV2] Fix CollectionView renders large empty space at bottom of view by @devanathan-vaithiyanathan in #31215 <details> <summary>🔧 Fixes</summary> - [[iOS] [MacCatalyst] CollectionView renders large empty space at bottom of view](#17799) - [[iOS/Mac] CollectionView2 EmptyView takes up large horizontal space even when the content is small](#33201) </details> - [iOS] Fixed issue where group Header/Footer template was set to all items when IsGrouped was true for an ObservableCollection by @Tamilarasan-Paranthaman in #29144 <details> <summary>🔧 Fixes</summary> - [[iOS] Group Header/Footer Repeated for All Items When IsGrouped is True for ObservableCollection in CollectionView](#29141) </details> - [Android] Fix CollectionView selection crash with HeaderTemplate by @NirmalKumarYuvaraj in #34275 <details> <summary>🔧 Fixes</summary> - [[Bug] [Android] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index](#34247) </details> ## DateTimePicker - [iOS] Fix TimePicker AM/PM frequently changes when the app is closed and reopened by @devanathan-vaithiyanathan in #31066 <details> <summary>🔧 Fixes</summary> - [[iOS] TimePicker AM/PM frequently changes when the app is closed and reopened](#30837) - [Maui 10 iOS TimePicker Strange Characters in place of AM/PM](#33722) </details> - Android TimePicker ignores 24 hour system setting when using Format Property - fix by @kubaflo in #28797 <details> <summary>🔧 Fixes</summary> - [Android TimePicker ignores 24 hour system setting when using Format Property](#28784) </details> ## Drawing - [iOS, Mac, Windows] GraphicsView: Fix Background/BackgroundColor not updating by @NirmalKumarYuvaraj in #31254 <details> <summary>🔧 Fixes</summary> - [[iOS, Mac, Windows] GraphicsView does not change the Background/BackgroundColor](#31239) </details> - [iOS] GraphicsView DrawString - fix by @kubaflo in #26304 <details> <summary>🔧 Fixes</summary> - [DrawString not rendering in iOS.](#24450) - [GraphicsView DrawString not rendering in iOS](#8486) - [DrawString doesn't work on maccatalyst](#4993) </details> - [Android] - Fix Shadow Rendering For Transparent Fill, Stroke (Lines), and Text on Shapes by @prakashKannanSf3972 in #29528 <details> <summary>🔧 Fixes</summary> - [Ellipse Transparency Not Rendered When Drawing Arc Inside the Ellipse Using GraphicsView on Android](#29394) </details> - Revert "[iOS, Mac, Windows] GraphicsView: Fix Background/BackgroundColor not updating (#31254)" by @Ahamed-Ali via @Copilot in #34508 ## Entry - [iOS 26] Fix Entry MaxLength not enforced due to new multi-range delegate by @kubaflo in #32045 <details> <summary>🔧 Fixes</summary> - [iOS 26 - The MaxLength property value is not respected on an Entry control.](#32016) - [.NET MAUI Entry Maximum Length not working on iOS and macOS](#33316) </details> - [iOS] Fixed Entry with IsPassword toggling loses previously entered text by @SubhikshaSf4851 in #30572 <details> <summary>🔧 Fixes</summary> - [Entry with IsPassword toggling loses previously entered text on iOS when IsPassword is re-enabled](#30085) </details> ## Essentials - Fix for FilePicker PickMultipleAsync nullable reference type by @SuthiYuvaraj in #33163 <details> <summary>🔧 Fixes</summary> - [FilePicker PickMultipleAsync nullable reference type](#33114) </details> - Replace deprecated NetworkReachability with NWPathMonitor on iOS/macOS by @jfversluis via @Copilot in #32354 <details> <summary>🔧 Fixes</summary> - [NetworkReachability is obsolete on iOS/maccatalyst 17.4+](#32312) - [Use NWPathMonitor on iOS for Essentials Connectivity](#2574) </details> ## Essentials Connectivity - Update Android Connectivity implementation to use modern APIs by @jfversluis via @Copilot in #30348 <details> <summary>🔧 Fixes</summary> - [Update the Android Connectivity implementation to user modern APIs](#30347) </details> ## Flyout - [iOS] Fixed Flyout icon not updating when root page changes using InsertPageBefore by @Vignesh-SF3580 in #29924 <details> <summary>🔧 Fixes</summary> - [[iOS] Flyout icon not replaced by back button when root page is changed using InsertPageBefore](#29921) </details> ## Flyoutpage - [iOS] Flyout Items Not Displayed in RightToLeft FlowDirection in Landscape - fix by @kubaflo in #26762 <details> <summary>🔧 Fixes</summary> - [Flyout Items Not Displayed in RightToLeft FlowDirection on iOS in Landscape Orientation and Hamburger Icon Positioned Incorrectly](#26726) </details> ## Image - [Android] Implemented Material3 support for Image by @Dhivya-SF4094 in #33661 <details> <summary>🔧 Fixes</summary> - [Implement Material3 support for Image](#33660) </details> ## Keyboard - [iOS] Fix gap at top of view after rotating device while Entry keyboard is visible by @praveenkumarkarunanithi in #34328 <details> <summary>🔧 Fixes</summary> - [Focusing and entering texts on entry control causes a gap at the top after rotating simulator.](#33407) </details> ## Label - [Android] Support for images inside HTML label by @kubaflo in #21679 <details> <summary>🔧 Fixes</summary> - [Label with HTML TextType does not display images on Android](#21044) </details> - [fix] ContentLabel Moved to a nested class to prevent CS0122 in external source generators by @SubhikshaSf4851 in #34514 <details> <summary>🔧 Fixes</summary> - [[MAUI] Building Maui App with sample content results CS0122 errors.](#34512) </details> ## Layout - Optimize ordering of children in Flex layout by @symbiogenesis in #21961 - [Android] Fix control size properties not available during Loaded event by @Vignesh-SF3580 in #31590 <details> <summary>🔧 Fixes</summary> - [CollectionView on Android does not provide height, width, logical children once loaded, works fine on Windows](#14364) - [Control's Loaded event invokes before calling its measure override method.](#14160) </details> ## Mediapicker - [iOS/Android] MediaPicker: Fix image orientation when RotateImage=true by @michalpobuta in #33892 <details> <summary>🔧 Fixes</summary> - [MediaPicker.PickPhotosAsync does not preserve image orientation](#32650) </details> ## Modal - [Windows] Fix modal page keyboard focus not shifting to newly opened modal by @jfversluis in #34212 <details> <summary>🔧 Fixes</summary> - [Keyboard focus does not shift to a newly opened modal page: Pressing enter clicks the button on the page beneath the modal page](#22938) </details> ## Navigation - [iOS26] Apply view margins in title view by @kubaflo in #32205 <details> <summary>🔧 Fixes</summary> - [NavigationPage TitleView iOS 26](#32200) </details> - [iOS] System.NullReferenceException at NavigationRenderer.SetStatusBarStyle() by @kubaflo in #29564 <details> <summary>🔧 Fixes</summary> - [System.NullReferenceException at NavigationRenderer.SetStatusBarStyle()](#29535) </details> - [iOS 26] Fix back button color not applied for NavigationPage by @Shalini-Ashokan in #34326 <details> <summary>🔧 Fixes</summary> - [[iOS] Color not applied to the Back button text or image on iOS 26](#33966) </details> ## Picker - Fix Picker layout on Mac Catalyst 26+ by @kubaflo in #33146 <details> <summary>🔧 Fixes</summary> - [[MacOS 26] Text on picker options are not centered on macOS 26.1](#33229) </details> ## Progressbar - [Android] Implemented Material3 support for ProgressBar by @SyedAbdulAzeemSF4852 in #33926 <details> <summary>🔧 Fixes</summary> - [Implement Material3 support for Progressbar](#33925) </details> ## RadioButton - [iOS, Mac] Fix for RadioButton TextColor for plain Content not working by @HarishwaranVijayakumar in #31940 <details> <summary>🔧 Fixes</summary> - [RadioButton: TextColor for plain Content not working on iOS](#18011) </details> - [All Platforms] Fix RadioButton warning when ControlTemplate is set with View content by @kubaflo in #33839 <details> <summary>🔧 Fixes</summary> - [Seeking clarification on RadioButton + ControlTemplate + Content documentation](#33829) </details> - Visual state change for disabled RadioButton by @kubaflo in #23471 <details> <summary>🔧 Fixes</summary> - [RadioButton disabled UI issue - iOS](#18668) </details> ## SafeArea - [Android] Fix for TabbedPage BottomNavigation BarBackgroundColor not extending to system navigation bar by @praveenkumarkarunanithi in #33428 <details> <summary>🔧 Fixes</summary> - [[Android] TabbedPage BottomNavigation BarBackgroundColor does not extend to system navigation bar area in Edge-to-Edge mode](#33344) </details> ## ScrollView - [Android] ScrollView: Fix HorizontalScrollBarVisibility not updating immediately at runtime by @SubhikshaSf4851 in #33528 <details> <summary>🔧 Fixes</summary> - [Runtime Scrollbar visibility not updating correctly on Android and macOS platforms.](#33400) </details> - Fixed crash when calling ItemsView.ScrollTo on unloaded CollectionView by @kubaflo in #25444 <details> <summary>🔧 Fixes</summary> - [App crashes when calling ItemsView.ScrollTo on unloaded CollectionView](#23014) </details> ## Shell - [Shell] Update logic for iOS large title display in ShellItemRenderer by @kubaflo in #33246 - [iOS][Shell] Fix navigation lifecycle and back button for More tab (>5 tabs) by @kubaflo in #27932 <details> <summary>🔧 Fixes</summary> - [OnAppearing and OnNavigatedTo does not work when using extended Tabbar (tabbar with more than 5 tabs) on IOS.](#27799) - [Shell.BackButtonBehavior does not work when using extended Tabbar (tabbar with more than 5 tabs)on IOS.](#27800) - [Shell TabBar More button causes ViewModel command binding disconnection on back navigation](#30862) - [Content page onappearing not firing if tabs are on the more tab on IOS](#31166) </details> - [iOS 26] Fix tab bar ghosting when navigating from modal to tabbed Shell content by @SubhikshaSf4851 in #34254 <details> <summary>🔧 Fixes</summary> - [[iOS] Tab bar ghosting issue on iOS 26 (liquid glass)](#34143) </details> - Fix for Shell tab visibility not updating when navigating back multiple pages by @BagavathiPerumal in #34403 <details> <summary>🔧 Fixes</summary> - [Changing Shell Tab Visibility when navigating back multiple pages ignores Shell Tab Visibility](#33351) </details> - [iOS/Mac] Fixed OnBackButtonPressed not firing for Shell Navigation Bar Button by @Dhivya-SF4094 in #34401 <details> <summary>🔧 Fixes</summary> - [[iOS] OnBackButtonPressed not firing for Shell Navigation Bar button](#34190) </details> ## Slider - [iOS] Fix for Slider ThumbImageSource is not centered properly on iOS 26 by @HarishwaranVijayakumar in #34019 <details> <summary>🔧 Fixes</summary> - [[iOS 26] Slider ThumbImageSource is not centered properly](#33967) </details> - [Android] Fix improper rendering of ThumbimageSource in Slider by @NirmalKumarYuvaraj in #34064 <details> <summary>🔧 Fixes</summary> - [[Slider] MAUI Slider thumb image is big on android](#13258) </details> ## Stepper - [iOS] Fix Stepper layout overlap in landscape on iOS 26 by @Vignesh-SF3580 in #34325 <details> <summary>🔧 Fixes</summary> - [[.NET10] D10 - Customize cursor position - Rotating simulator makes the button and label overlap](#34273) </details> ## SwipeView - [iOS] SwipeView: Honor FontImageSource.Color in SwipeItem icon by @kubaflo in #27389 <details> <summary>🔧 Fixes</summary> - [[iOS] SwipeView: SwipeItem.IconImageSource.FontImageSource color value not honored](#27377) </details> ## Switch - [Android] Fix Switch thumb shadow missing when ThumbColor is set by @Shalini-Ashokan in #33960 <details> <summary>🔧 Fixes</summary> - [Android Switch Control Thumb Shadow](#19676) </details> ## Toolbar - [iOS/Mac Catalyst 26] Fix Shell.ForegroundColor not applied to ToolbarItems by @SyedAbdulAzeemSF4852 in #34085 <details> <summary>🔧 Fixes</summary> - [[iOS26] Shell.ForegroundColor is not applied to ToolbarItems](#34083) </details> - [Android] VoiceOver on Toolbar Item by @kubaflo in #29596 <details> <summary>🔧 Fixes</summary> - [VoiceOver on Toolbar Item](#29573) - [SemanticProperties do not work on ToolbarItems](#23623) </details> <details> <summary>🧪 Testing (11)</summary> - [Testing] Additional Feature Matrix Test Cases for CollectionView by @TamilarasanSF4853 in #32432 - [Testing] Feature Matrix UITest Cases for VisualStateManager by @LogishaSelvarajSF4525 in #34146 - [Testing] Feature Matrix UITest Cases for Clip by @TamilarasanSF4853 in #34121 - [Testing] Feature matrix UITest Cases for Map Control by @HarishKumarSF4517 in #31656 - [Testing] Feature matrix UITest Cases for Visual Transform Control by @HarishKumarSF4517 in #32799 - [Testing] Feature Matrix UITest Cases for Shell Pages by @NafeelaNazhir in #33945 - [Testing] Feature Matrix UITest Cases for Triggers by @HarishKumarSF4517 in #34152 - [Testing] Refactoring Feature Matrix UITest Cases for CheckBox Control by @LogishaSelvarajSF4525 in #34283 - Resolve UI test Build Sample failures - Candidate March 16 by @Ahamed-Ali in #34442 - Fix the failures in the Candidate branch- March 16 by @Ahamed-Ali in #34453 <details> <summary>🔧 Fixes</summary> - [March 16th, Candidate](#34437) </details> - Fixed the iOS 18.5 Candidate failures (March 16,2026) by @Ahamed-Ali in #34593 <details> <summary>🔧 Fixes</summary> - [March 16th, Candidate](#34437) </details> </details> <details> <summary>📦 Other (2)</summary> - Fixed candidate test failures caused by PR #33428. by @Ahamed-Ali in #34515 <details> <summary>🔧 Fixes</summary> - [[.NET10] On Android, there's a big space at the top for I, M and N2 & N3](#34509) </details> - Revert "[iOS] Button RTL text and image overlap - fix (#29041)" in b0497af </details> <details> <summary>📝 Issue References</summary> Fixes #2574, Fixes #4993, Fixes #8486, Fixes #13258, Fixes #14160, Fixes #14364, Fixes #17799, Fixes #18011, Fixes #18668, Fixes #19676, Fixes #21044, Fixes #22938, Fixes #23014, Fixes #23623, Fixes #24450, Fixes #26187, Fixes #26726, Fixes #27377, Fixes #27799, Fixes #27800, Fixes #28656, Fixes #28784, Fixes #28968, Fixes #29141, Fixes #29394, Fixes #29535, Fixes #29573, Fixes #29921, Fixes #30085, Fixes #30347, Fixes #30363, Fixes #30837, Fixes #30862, Fixes #31166, Fixes #31239, Fixes #31259, Fixes #32016, Fixes #32200, Fixes #32312, Fixes #32650, Fixes #33114, Fixes #33201, Fixes #33229, Fixes #33316, Fixes #33344, Fixes #33351, Fixes #33400, Fixes #33407, Fixes #33479, Fixes #33660, Fixes #33722, Fixes #33829, Fixes #33925, Fixes #33966, Fixes #33967, Fixes #34083, Fixes #34143, Fixes #34190, Fixes #34247, Fixes #34273, Fixes #34278, Fixes #34437, Fixes #34509, Fixes #34512 </details> **Full Changelog**: main...inflight/candidate
…dotnet#33246) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Background and Context This PR addresses issue dotnet#33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue: 1. **PR dotnet#33039** (merged Dec 8, 2025): Changed the condition from `PrefersLargeTitles = largeTitleDisplayMode == Always` to `PrefersLargeTitles = largeTitleDisplayMode != Never` 2. **PR dotnet#33230** (merged Dec 19, 2025): Reverted dotnet#33039 because it caused "a lot of failing tests" - large titles started appearing unintentionally in many scenarios, breaking UI test snapshots 3. **PR dotnet#33246** (this PR): Re-attempts the fix with an important addition: opt-in check ## Root Cause Shell doesn't have a `PrefersLargeTitles` property at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior. **Problem with PR dotnet#33039:** Changing the condition to `largeTitleDisplayMode != Never` meant that: - `LargeTitleDisplayMode.Always` → PrefersLargeTitles = true ✅ - `LargeTitleDisplayMode.Automatic` → PrefersLargeTitles = true⚠️ (unintended for pages that didn't set the property) - `LargeTitleDisplayMode.Never` → PrefersLargeTitles = false ✅ Since the default value is `Automatic`, pages that never set `LargeTitleDisplay` would suddenly get large titles, breaking many UI tests. ## Description of Change This PR implements an **opt-in model** for large title display in Shell: ### 1. Added Opt-In Check Before updating large title preferences, the code now checks if the `LargeTitleDisplay` property is explicitly set on the Page: ```csharp if (!page.IsSet(PlatformConfiguration.iOSSpecific.Page.LargeTitleDisplayProperty)) { return; // Don't update if property not explicitly set }
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Background and Context
This PR addresses issue #33037 where iOS large titles in Shell don't transition properly when scrolling. This is the third attempt to fix the issue:
PrefersLargeTitles = largeTitleDisplayMode == AlwaystoPrefersLargeTitles = largeTitleDisplayMode != NeverRoot Cause
Shell doesn't have a
PrefersLargeTitlesproperty at the Shell level. The previous implementation would update large title preferences whenever any page was displayed, regardless of whether the developer explicitly requested large title behavior.Problem with PR #33039: Changing the condition to
largeTitleDisplayMode != Nevermeant that:LargeTitleDisplayMode.Always→ PrefersLargeTitles = true ✅LargeTitleDisplayMode.Automatic→ PrefersLargeTitles = trueLargeTitleDisplayMode.Never→ PrefersLargeTitles = false ✅Since the default value is
Automatic, pages that never setLargeTitleDisplaywould suddenly get large titles, breaking many UI tests.Description of Change
This PR implements an opt-in model for large title display in Shell:
1. Added Opt-In Check
Before updating large title preferences, the code now checks if the
LargeTitleDisplayproperty is explicitly set on the Page: