Reputation: 403
How to Remove Navigation Bar Shadow and Line of content page in Xamarin.forms. Is it possible to do this without rendering.
Upvotes: 1
Views: 1864
Reputation: 336
Add this render class inside you xamarin ios project
[assembly: ExportRenderer(typeof(NavigationPage), typeof(CustomNavigationRenderer))]
namespace YOUR_IOS_NAMESPACE
{
public class CustomNavigationRenderer : NavigationRenderer
{
public override void ViewDidLoad()
{
base.ViewDidLoad();
NavigationBar.ShadowImage = new UIImage();
}
}
}
Upvotes: 1
Reputation: 68810
For just Xamarin Forms, iOS. Add this to your AppDelegate
UINavigationBar.Appearance.ShadowImage = new UIImage(); //No line under the navigation
Upvotes: 5