The title does not appear in the main menu.

I applied the hamburger menu using the main details page in my Xamarin app.

Sent this link

I am trying to display the default "Dashboard" title in the action bar, after which the name of the page to be moved from the menu will be displayed on the screen.

The solution I found is in accordance with this heading for all pages, then why doesn’t it show that the initial title of the page is in the action bar.

Any help is most appreciated.

thank

+4
source share
1 answer

I looked at the page you specified, and I do not see anywhere in the page title.

One way to do this is to change the code in OnMenuSelected

Detail = new NavigationPage((Page)Activator.CreateInstance(page));

var page = (Page)Activator.CreateInstance(page);
page.Title = item.Title;
Detail = new NavigationPage(page);
+2

Source: https://habr.com/ru/post/1691086/


All Articles