Issue
I have added items to the toolbar menu programmatically. Now I want to access the item's title attribute. I know you can use item.getTitle() to get the title in Java, but how do would you get the title associated to that item in C#?
Solution
if you look at the docs for IMenuItem you will see that it has a TitleFormatted
property that maps to the Android getTitle
method.
Generally Android getPropertyName
methods are mapped to C# PropertyName
properties in Xamarin.
Answered By - Jason Answer Checked By - David Marino (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.