update app structure to Shell
This commit is contained in:
1 parent
8746d311d2
commit
010c93f8d5
18 files changed
+112
-136
No files matched your search
@@ -1,26 +0,0 @@
|
||||
using Pixiview.iOS.Renderers;
|
||||
using Pixiview.UI;
|
||||
using UIKit;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Platform.iOS;
|
||||
|
||||
[assembly: ExportRenderer(typeof(AdaptedNavigationPage), typeof(AdaptedNavigationPageRenderer))]
|
||||
namespace Pixiview.iOS.Renderers
|
||||
{
|
||||
public class AdaptedNavigationPageRenderer : NavigationRenderer
|
||||
{
|
||||
public override void WillMoveToParentViewController(UIViewController parent)
|
||||
{
|
||||
if (Element is AdaptedNavigationPage navigation)
|
||||
{
|
||||
NavigationBar.Translucent = true;
|
||||
|
||||
var barHeight = NavigationBar.Frame.Height;
|
||||
var statusHeight = UIApplication.SharedApplication.StatusBarFrame.Height;
|
||||
navigation.SetNavigationBarHeight(barHeight, statusHeight);
|
||||
}
|
||||
|
||||
base.WillMoveToParentViewController(parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user