Popup Overlay doesn't cover for Shell Window in Prism

Topics: Prism v4 - WPF 4
Apr 25, 2013 at 10:07 AM
Hi,
   I have two regions in Shell Window as Title Region and Main Region as
<Grid>
     <ContentControl x:Name = "Title Region"/>
      <ContentControl x:Name= "Main Region"/>
</Grid>
       I implemented user control in MainRegion. In that a Popup Overlay Message box is displayed. Overlay is covering only MainRegion. I need to do Overlay on Whole Shell Window when I invoke Popup

Thanks,
Raj
Apr 25, 2013 at 7:40 PM
Hi,

Base on my understanding, if you define an Overlay in a view, that Overlay will only cover the view where it is defined, in this case the view inside the region. In order to be able to show an Overlay on the whole Shell Window, you can define a generic Overlay on the Shell and only pass content to it when you want to use it.

Regards,

Federico Martinez
http://blogs.southworks.net/fmartinez
Apr 25, 2013 at 8:37 PM
Hi fMartinez Yes correct. Iam stucked with how to define the content To the shell. Can you provide one small code to call the content from the view. Thanks, Reeganlourduraj Sent from my Xperia™ smartphone
Apr 29, 2013 at 6:47 PM
Hi,

I created a small sample containing a Popup Overlay that covers the whole Shell. In this sample, the View in the Main Region sends a message thorugh the EventAggregator and the Shell shows it in the popup. You can find the sample in my Skydrive account:

This sample was created using Interaction Requests from the MVVM Training In-The-Box:

Hope this helps,

Federico Martinez
http://blogs.southworks.net/fmartinez
Apr 30, 2013 at 5:55 AM
Hi Federico,
          Thanks For your solution it helps me to solve the problem. Regarding Validation in prism i have some doubts. I created a custom window to show all the 
validation Messages and implemented in IDataErrorInfo. Validation are need to check in all textboxes in the form based on GotFocus and LostFocus Events. But

Message Window will firing in initialization itself for some of textboxes where i validate string is null or empty. I tried a lot and i didn't found any solution. Can you help

me to solve this problem?


Thanks In Advance,

Reegan Lourduraj.
Apr 30, 2013 at 5:59 PM
Hi,

Based on my understanding, the Prism MVVM Quickstart uses Validation for text boxes, so maybe you could use it as a reference to implement your validation logic and avoid your issue in application initialization:
I hope you find this helpful,

Federico Martinez
http://blogs.southworks.net/fmartinez