Native navigation

This commit is contained in:
2025-07-02 14:12:39 +02:00
parent ddbf9c832e
commit ddc596ef58
20 changed files with 138 additions and 32 deletions

View File

@@ -0,0 +1,18 @@
using salesbook.Shared.Core.Interface;
namespace salesbook.Maui.Core.Services;
public class PageTitleService(IDispatcher dispatcher) : IPageTitleService
{
public void SetTitle(string title)
{
dispatcher.Dispatch(() =>
{
if (Application.Current?.MainPage is NavigationPage nav &&
nav.CurrentPage is ContentPage cp)
{
cp.Title = title;
}
});
}
}