Change page title when tab changes with Prism

GiorgiGiorgi USMember ✭✭

Hello,

I have a tabbed page and I want to change page title when a tab is changed. I found this solution but I'm not sure how to implement it in Prism Mvvm solution.

I am thinking about implementing IActionAware in tab viewmodel and using MessagingCenter to notify parent about tab change. Is that how I should implement it or is there a better approach?

Answers

  • BrianLagunasBrianLagunas USInsider ✭✭✭✭

    I would recommend to create a custom behavior and attach it to the TabbedPage. Every time the tab changes update the title. Easy

Sign In or Register to comment.