Search code examples
c#xamluwpwin-universal-app

UWP MasterDetailsView DetailsView Back to MasterView


How can I let my DetailsView go back to MasterView when MasterDetailsView is in the Compact Mode?

I don't want to use the given back button so I set BackButtonBehavior="Manual". But how can I control the back behavior?


Solution

  • The MasterDetailsView in the Windows Community Toolkit does not provide methods or properties to change the state of the current display.

    Currently you can only get the ViewState, but you cannot change it. If you need a custom navigation fallback, you can create your own Mater/Detail view

    Best regards.