Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

NavigationRenderer and iOS right button

$
0
0

Hi,

I wrote the below renderer but no right button on iPhone simulator.
'public class NavigationPageWithHomeBtnRenderer: NavigationRenderer
{
public NavigationPageWithHomeBtnRenderer()
{ }

    public override void ViewDidLoad()
    {
        base.ViewDidLoad();
        this.NavigationItem.SetRightBarButtonItem(
            new UIBarButtonItem(UIBarButtonSystemItem.Play, (sender, args) =>
            {
                //TODO
            })
        , true);
    }
}'

Viewing all articles
Browse latest Browse all 58056

Trending Articles