Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

In Prism/Unity/MVVM regions, how to display a region's controls in a 'stack of cards' fashion?

$
0
0

I'd like to define a region in such a manner as to allow it to contain multiple views but only display one view at a time. In CAB, this would have been done using a stack of cards container. WPF/Prism/Unity/MVVM does not come with such a control. Does anyone have a suggestion on how to accomplish this?

I'm assuming that the shell would declare a RegionBorderControl with some sort of control capable of containing multiple children in it, something like

<local:RegionBorderControl RegionName="MainRegion" ><DeckControl prism:RegionManager.RegionName="MainRegion"<DeckControl.Background></DeckControl></local:RegionBorderControl>
And in the ModuleInit,cs, I assume that the Initialize() would have something to register the multiple View classes with the region manager but I do not seem to be able to figure out what sort of control to put into the shell's XAML file itself that will actually allow display of the registered views.


Richard Lewis Haggard


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>