Maui navigation and TitleView is very confusing

Lloyd Sheen 1,376 Reputation points
2023-02-12T18:10:32.7866667+00:00

I am trying to customize the TitleView in a Maui app.

1st - I am trying to get the page title but this is not happening. The property CurrentPage does not seem to get updated and this means that the Title prop of the CurrentPage is not accessable.

2nd - even with it not working I have a button on the TitleView that will allow me to kill the app at any time without going back/back/back etc. The button shows when the app loads but as soon as I go to another page it disappears and the TitleView seems to have no function. As soon as I nav back to the opening page the button comes back but at the present it seems like doing this is not happening.

Now it gets weirder. If I nav to another page (using code) not the Flyout items the Title is correct and the button is shown. Seems that using the Flyouts to navigate do not update the TitleView.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,867 questions
{count} vote

23 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more