Hello everyone.
I am playing around with MVVM (leveraging Prism and Unity), but I am somewhat stuck on how to bind my modules to a PanelBar properly. What I want to do is set the ItemHeader text to the name of whatever module I am loading (at design time, I don't know how many modules will be loaded), and then have the Items (Views) be displayed under that. Graphically it would look something like this:
################ PanelBar ###############
================Module 1 Text=============== //ItemHeader
---------------------------- View 1 Text--------------------------- //Item
---------------------------- View 2 Text--------------------------- //Item
---------------------------- View 3 Text--------------------------- //Item
================Module 3 Text=============== //ItemHeader
---------------------------- View 1 Text--------------------------- //Item
---------------------------- View 2 Text--------------------------- //Item
##########################################
I know (basically) how to get 'View X Text' to display through the use of a ViewModel, but I am not sure about getting the ItemHeader set properly. Any help that you can provide would be greatly appreciated!
Thanks.
I am playing around with MVVM (leveraging Prism and Unity), but I am somewhat stuck on how to bind my modules to a PanelBar properly. What I want to do is set the ItemHeader text to the name of whatever module I am loading (at design time, I don't know how many modules will be loaded), and then have the Items (Views) be displayed under that. Graphically it would look something like this:
################ PanelBar ###############
================Module 1 Text=============== //ItemHeader
---------------------------- View 1 Text--------------------------- //Item
---------------------------- View 2 Text--------------------------- //Item
---------------------------- View 3 Text--------------------------- //Item
================Module 3 Text=============== //ItemHeader
---------------------------- View 1 Text--------------------------- //Item
---------------------------- View 2 Text--------------------------- //Item
##########################################
I know (basically) how to get 'View X Text' to display through the use of a ViewModel, but I am not sure about getting the ItemHeader set properly. Any help that you can provide would be greatly appreciated!
Thanks.