This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] Allow VC renderers of FlyoutPage to specify UIStatusBarStyle (#…
…13143) * [Controls] Add reproduction sample for issue #13053 * [iOS] Internal ChildViewController should specify the real renderer to override StatusBarStyle * Update Xamarin.Forms.ControlGallery.iOS.csproj * [iOS] Use index to find the correct ChildViewControllers Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
- Loading branch information
1 parent
2822e79
commit 000000c
Showing
6 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Xamarin.Forms.ControlGallery.iOS/CustomRenderers/UIStatusBarStyleRenderer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using UIKit; | ||
using Xamarin.Forms.Platform.iOS; | ||
|
||
namespace Xamarin.Forms.ControlGallery.iOS.CustomRenderers | ||
{ | ||
public class DetailPageStatusBarRenderer : NavigationRenderer | ||
{ | ||
public override UIStatusBarStyle PreferredStatusBarStyle() | ||
{ | ||
return UIStatusBarStyle.DarkContent; | ||
} | ||
} | ||
|
||
public class FlyoutPageStatusRenderer : PageRenderer | ||
{ | ||
public override UIStatusBarStyle PreferredStatusBarStyle() | ||
{ | ||
return UIStatusBarStyle.LightContent; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters