How can I dynamically center the title (ContentPage) on both iOS and Android in .NET MAUI?
For iOS, the title is already displaying in the middle, but for Android, it’s displayed on the left side by default. I want the title to be centered on both platforms. To achieve this, I’m using Shell.TitleView and OnPlatform for Android, but this approach isn’t dynamic—I still have to set the value statically for each page. Since the project has many pages, this isn’t really feasible. Is there any other approach I can use that is more dynamic?