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

Can't change text of ToolbarItem

$
0
0

I've tried putting the ToolbarItem in using XAML as well as creating it in the code behind. The item shows up, but I am unable to change the text on it. I tried using the Name as well as Text property. No matter what I try the text never changes. This is the current attempt at it.

        ToolbarItems.Add(new ToolbarItem {
            Name = "0",
            Order = ToolbarItemOrder.Primary,
            Command = new Command(() => Navigation.PushAsync(new Selected()))
        });

And my latest attempt at changing the text.
ToolbarItems [0].Name = CodeCount;


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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