Sunday, September 2, 2012

Show/Hide views using Visual State Manager silverlight & PRISM

Show/Hide views using Visual State Manager silverlight & PRISM

I have an application that display different datasets (users, nationality, etc) on the screen using radOutlookbar. I have manage to load the required views in each item to display the data with no problem.

I then built views for each dataset (users, nationality, etc) to display the details about each selected item (i.e:user) within the displayed datasets.

Case: First, I need to display the respective view for each dataset when I click on it's item. Second, The displayed view will have an option to edit/add the displayed details.

I want to achieve this scenario using state-base-navigation.

So, I have a PRISM region inside ItemsControl with ItemsPanelTemplate of grid to host the loaded views, basically I load the views for each dataset.

Question, How should I show/hide the respective view according to the selected dataset using VSM?

Question 2: Should I be able to define another nested state inside the loaded view to enable the scenario of edit/add details for each view?

If someone have any idea to do this, will be of great help to have a starting code. Best regards

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog