Search code examples
.netwpfnavigationquery-stringmodern-ui

QueryString in WPF UserControl / View


I'm trying to use the <mui:ModernTab.Links> collection in a UserControl to show a view containing a list of items. Ideally I'd like the tabs a category of data to show in the list. I was thinking of populating the list dynamically and passing the selected category using the query string perhaps, but I'm not sure how to get at the query string data from my view (which is a UserControl). Is there a better way of doing this? Maybe a style I could apply to a ListBox containing the items which would make it look like a modern UI tab list?


Solution

  • The solution using the ModernUI Framework is to use the context of the NavigationFrame, for which MUI provides helpers.

    This topic has more information.