tags:

views:

71

answers:

2

Hi,

I'm new working with Prism with WPF, and I have a question which I can't find answer.

Why it is impossible to add a window in a Region ? I can understand there's a good reason, so I will need another solution to my problem.

It is quite simple, I got a LoginView (Window) which I want to appear first. For the previous reason, in my Region, I added a MainView (UserControl) where I just show my LoginView on the Loaded event.

The problem if the user quit the application or if he cancels his login, the MainView is still showing up.

It seems a stupid problem, but I can't find a smart solution.

Thanks for your time.

+1  A: 

Hi esylvestre,

Maybe this threads from the codeplex forum can provide some answers.

Show login modal form before

Showing a view in a region vs a modal dialog

Window dialog activation

Anero
Thanks for the hints.I'll comeback with my solution.
esylvestre
A: 

We changed our approach for the project, so this problem is no more an obstacle for me. The best solution so far was the one of using a user control to "pop" like a real Window.

Thanks.

esylvestre