Can anyone provide a hint on how I would populate a navigation toolbar similar to the StaffLynx Entity toolbar that the Billy Hollis video displays across bottom of the app?
I only want to show a “Client” icon in the toolbar if indeed the application version running has the Client module loaded and available but am unsure how to perform this MVVM style?
Thanks
What you want is your toolbar to have a region:
Then ensure there is a valid
RegionAdapterfor the type of your toolbar; You can overrideConfigureRegionAdapterMappingsin your bootstrapper to register additional region adapters:Then in your modules, you can register views to display in this region, e.g:
Where
MyToolbarItemis the view you want to be displayed in the toolbar.Prism will then automatically instantiate an instance of
MyToolbarItemand add it to the region called ToolbarRegion.