Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Add a backButton on Navigationbar on ios

$
0
0

Hi

I try to put a backbutton on my navigationbar.

here is my code

public SingleNewsView(News news) { this.news = news; NavigationBar.SetBackgroundImage(UIImage.FromBundle("Drawable/header_background.png").CreateResizableImage(new UIEdgeInsets(52, 5, 5, 5)), UIBarMetrics.Default); UIBarButtonItem backbutton = new UIBarButtonItem("retour", UIBarButtonItemStyle.Done, null); this.NavigationItem.BackBarButtonItem = backbutton; this.NavigationItem.BackBarButtonItem.Enabled = true; }

I get my backgroundimage, so the first line works.

thank you


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>