Usage of MEFedMVVM

Jun 9, 2010 at 9:00 AM

What is the best way to use this framework? Is it the PRISM way (Modules with ViewModels, Views etc) or one project with all ViewModels, Views etc? 

Coordinator
Jun 9, 2010 at 9:22 AM

well every projects is different.... yet I do not like having ViewModels in a project and Views in another, I prefer the "PRISM way" i.e modules.

Jun 9, 2010 at 10:21 AM
Ok. That's what I think to. So mayby a good thing to have is a RegionManager??



Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 10:22:01:

> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 10:22
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> well every projects is different.... yet I do not like having
> ViewModels in a project and Views in another, I prefer the "PRISM
> way" i.e modules.
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Coordinator
Jun 9, 2010 at 10:29 AM

yes region Manager is something I am looking into... having said that there should be no problem using the PRISM Region Manager together with MEFedMVVM

 

Jun 9, 2010 at 11:29 AM
Good, but still I just want to be dependent on only one framework. Is it difficult to take PRISM RegionManager and implement it to your framework? (are you aloud to do that?)



Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:

> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 11:29
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> yes region Manager is something I am looking into... having said
> that there should be no problem using the PRISM Region Manager
> together with MEFedMVVM
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Coordinator
Jun 9, 2010 at 11:37 AM
I will do a sample on that soon...

Having said that, I would be interested to hear on scenarios where you would need the Region Manager.

Regards
Marlon
WPF Blog - http://marlongrech.wordpress.com/
Microsoft MVP for Client App



On Wed, Jun 9, 2010 at 11:29 AM, pcedendahl <notifications@codeplex.com> wrote:

From: pcedendahl

Good, but still I just want to be dependent on only one framework. Is it difficult to take PRISM RegionManager and implement it to your framework? (are you aloud to do that?)



Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:


> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 11:29
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> yes region Manager is something I am looking into... having said
> that there should be no problem using the PRISM Region Manager
> together with MEFedMVVM
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Read the full discussion online.

To add a post to this discussion, reply to this email (MEFedMVVM@discussions.codeplex.com)

To start a new discussion for this project, email MEFedMVVM@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 9, 2010 at 12:57 PM
Have a look at this:
http://www.codeproject.com/KB/WPF/PrismLayoutManager.aspx
http://msdn.microsoft.com/en-us/magazine/cc785479.aspx#id0090091
http://blog.raffaeu.com/archive/2010/02/07/build-enterprise-application-with-wpf-wcf-prism-and-entity-framework.aspx

this one is maby interesting if it's possible to Mefify it.:
http://csharperimage.jeremylikness.com/2010/01/auto-discoverable-views-using-fluent.html


PRISM 4 seems to be quite good. Have a look at the RegionManager there.


Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 12:37:41:

> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 12:38
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> I will do a sample on that soon...
>
> Having said that, I would be interested to hear on scenarios where
> you would need the Region Manager.
>
> Regards
> Marlon
> WPF Blog - http://marlongrech.wordpress.com/
> Microsoft MVP for Client App
>
>

> On Wed, Jun 9, 2010 at 11:29 AM, pcedendahl <notifications@codeplex.com
> > wrote:
> From: pcedendahl
> Good, but still I just want to be dependent on only one framework.
> Is it difficult to take PRISM RegionManager and implement it to your
> framework? (are you aloud to do that?)
>
>
>
> Best regards,
>
> Patrik Cedendahl,
> System Developer
> Sandvik IT Services AB
> SE-811 81 Sandviken, SWEDEN
>
> Office Phone: +46 26 262997
> Mobile: +46 70 2728110
> http://www.sandvik.com
> patrik.cedendahl@sandvik.com

> "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:
>
>
> > "marlongrech"
> >
> > From:
> >
> > "marlongrech" <notifications@codeplex.com>
> >
> > To:
> >
> > patrik.cedendahl@sandvik.com
> >
> > Cc:
> >
> > Date:
> >
> > 2010-06-09 11:29
> >
> > Subject:
> >
> > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> >
> > From: marlongrech
> > yes region Manager is something I am looking into... having said
> > that there should be no problem using the PRISM Region Manager
> > together with MEFedMVVM
> >
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> This e-mail is confidential and it is intended only for the
> addressees. Any review, dissemination, distribution, or copying of
> this message by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error,
> kindly notify us immediately by telephone or e-mail and delete the
> message from your system. The sender does not accept liability for
> any errors or omissions in the contents of this message which may
> arise as a result of the e-mail transmission.
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Coordinator
Jun 9, 2010 at 1:10 PM
I used  PRISM regions before... my question was more how are you planning to use it

Regards
Marlon
WPF Blog - http://marlongrech.wordpress.com/
Microsoft MVP for Client App



On Wed, Jun 9, 2010 at 12:57 PM, pcedendahl <notifications@codeplex.com> wrote:

From: pcedendahl

Have a look at this:
http://www.codeproject.com/KB/WPF/PrismLayoutManager.aspx
http://msdn.microsoft.com/en-us/magazine/cc785479.aspx#id0090091
http://blog.raffaeu.com/archive/2010/02/07/build-enterprise-application-with-wpf-wcf-prism-and-entity-framework.aspx

this one is maby interesting if it's possible to Mefify it.:
http://csharperimage.jeremylikness.com/2010/01/auto-discoverable-views-using-fluent.html


PRISM 4 seems to be quite good. Have a look at the RegionManager there.


Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 12:37:41:


> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 12:38
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> I will do a sample on that soon...
>
> Having said that, I would be interested to hear on scenarios where
> you would need the Region Manager.
>
> Regards
> Marlon
> WPF Blog - http://marlongrech.wordpress.com/
> Microsoft MVP for Client App
>
>

> On Wed, Jun 9, 2010 at 11:29 AM, pcedendahl <notifications@codeplex.com
> > wrote:
> From: pcedendahl
> Good, but still I just want to be dependent on only one framework.
> Is it difficult to take PRISM RegionManager and implement it to your
> framework? (are you aloud to do that?)
>
>
>
> Best regards,
>
> Patrik Cedendahl,
> System Developer
> Sandvik IT Services AB
> SE-811 81 Sandviken, SWEDEN
>
> Office Phone: +46 26 262997
> Mobile: +46 70 2728110
> http://www.sandvik.com
> patrik.cedendahl@sandvik.com

> "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:
>
>
> > "marlongrech"
> >
> > From:
> >
> > "marlongrech" <notifications@codeplex.com>
> >
> > To:
> >
> > patrik.cedendahl@sandvik.com
> >
> > Cc:
> >
> > Date:
> >
> > 2010-06-09 11:29
> >
> > Subject:
> >
> > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> >
> > From: marlongrech
> > yes region Manager is something I am looking into... having said
> > that there should be no problem using the PRISM Region Manager
> > together with MEFedMVVM
> >
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> This e-mail is confidential and it is intended only for the
> addressees. Any review, dissemination, distribution, or copying of
> this message by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error,
> kindly notify us immediately by telephone or e-mail and delete the
> message from your system. The sender does not accept liability for
> any errors or omissions in the contents of this message which may
> arise as a result of the e-mail transmission.
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Read the full discussion online.

To add a post to this discussion, reply to this email (MEFedMVVM@discussions.codeplex.com)

To start a new discussion for this project, email MEFedMVVM@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 9, 2010 at 1:45 PM
Ok,
If I create a module that I export like this:

[ExportView(RegionPosition = Region.LeftTop)]


In the "MainView" I have structured the layout with Regions, for example LeftTop region. MEFedMVVM will compose this and add it to a RegionManager that adds the correct View to the correct region. An DependencyObject in the XAML will make this happen.


Maby, if its possible, do it like you do it today in the xaml:

<UserControl x:Class="MEFedMVVMDemo.Views.SelectedUser"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
meffed:ViewModelLocator.RegionManager="RegionManager2"
</UserControl>

Under the hood MEFedMVVM will get all FrameworkElements (not sure about this) that has the Region DependencyObject (not sure about this ether) and add the views to the correct region.
Usercontrols, Windows etc can be layout in regions so it should be possible to tell witch RegionManager to use.
This will help alot. Just create a module and tag it somehow and put it in the Extensions folder and it will show up in the correct region.

Does this make sense to you???



Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 14:10:21:

> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 14:10
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> I used PRISM regions before... my question was more how are you
> planning to use it
>
> Regards
> Marlon
> WPF Blog - http://marlongrech.wordpress.com/
> Microsoft MVP for Client App
>
>

> On Wed, Jun 9, 2010 at 12:57 PM, pcedendahl <notifications@codeplex.com
> > wrote:
> From: pcedendahl
> Have a look at this:
> http://www.codeproject.com/KB/WPF/PrismLayoutManager.aspx
> http://msdn.microsoft.com/en-us/magazine/cc785479.aspx#id0090091
> http://blog.raffaeu.com/archive/2010/02/07/build-enterprise-
> application-with-wpf-wcf-prism-and-entity-framework.aspx
>
> this one is maby interesting if it's possible to Mefify it.:
> http://csharperimage.jeremylikness.com/2010/01/auto-discoverable-
> views-using-fluent.html
>
>
> PRISM 4 seems to be quite good. Have a look at the RegionManager there.
>
>
> Best regards,
>
> Patrik Cedendahl,
> System Developer
> Sandvik IT Services AB
> SE-811 81 Sandviken, SWEDEN
>
> Office Phone: +46 26 262997
> Mobile: +46 70 2728110
> http://www.sandvik.com
> patrik.cedendahl@sandvik.com

> "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 12:37:41:
>
>
> > "marlongrech"
> >
> > From:
> >
> > "marlongrech" <notifications@codeplex.com>
> >
> > To:
> >
> > patrik.cedendahl@sandvik.com
> >
> > Cc:
> >
> > Date:
> >
> > 2010-06-09 12:38
> >
> > Subject:
> >
> > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> >
> > From: marlongrech
> > I will do a sample on that soon...
> >
> > Having said that, I would be interested to hear on scenarios where
> > you would need the Region Manager.
> >
> > Regards
> > Marlon
> > WPF Blog - http://marlongrech.wordpress.com/
> > Microsoft MVP for Client App
> >
> >
>
> > On Wed, Jun 9, 2010 at 11:29 AM, pcedendahl <notifications@codeplex.com
> > > wrote:
> > From: pcedendahl
> > Good, but still I just want to be dependent on only one framework.
> > Is it difficult to take PRISM RegionManager and implement it to your
> > framework? (are you aloud to do that?)
> >
> >
> >
> > Best regards,
> >
> > Patrik Cedendahl,
> > System Developer
> > Sandvik IT Services AB
> > SE-811 81 Sandviken, SWEDEN
> >
> > Office Phone: +46 26 262997
> > Mobile: +46 70 2728110
> > http://www.sandvik.com
> > patrik.cedendahl@sandvik.com
>
> > "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:
> >
> >
> > > "marlongrech"
> > >
> > > From:
> > >
> > > "marlongrech" <notifications@codeplex.com>
> > >
> > > To:
> > >
> > > patrik.cedendahl@sandvik.com
> > >
> > > Cc:
> > >
> > > Date:
> > >
> > > 2010-06-09 11:29
> > >
> > > Subject:
> > >
> > > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> > >
> > > From: marlongrech
> > > yes region Manager is something I am looking into... having said
> > > that there should be no problem using the PRISM Region Manager
> > > together with MEFedMVVM
> > >
> > > Read the full discussion online.
> > > To add a post to this discussion, reply to this email (
> > > MEFedMVVM@discussions.codeplex.com)
> > > To start a new discussion for this project, email
> > > MEFedMVVM@discussions.codeplex.com
> > > You are receiving this email because you subscribed to this
> > > discussion on CodePlex. You can unsubscribe or change your settings
> > > on codePlex.com.
> > > Please note: Images and attachments will be removed from emails. Any
> > > posts to this discussion will also be available online at codeplex.com
> > This e-mail is confidential and it is intended only for the
> > addressees. Any review, dissemination, distribution, or copying of
> > this message by persons or entities other than the intended
> > recipient is prohibited. If you have received this e-mail in error,
> > kindly notify us immediately by telephone or e-mail and delete the
> > message from your system. The sender does not accept liability for
> > any errors or omissions in the contents of this message which may
> > arise as a result of the e-mail transmission.
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> >
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> This e-mail is confidential and it is intended only for the
> addressees. Any review, dissemination, distribution, or copying of
> this message by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error,
> kindly notify us immediately by telephone or e-mail and delete the
> message from your system. The sender does not accept liability for
> any errors or omissions in the contents of this message which may
> arise as a result of the e-mail transmission.
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Coordinator
Jun 9, 2010 at 3:36 PM
yea it does yet I guess I would need to think a bit more about this...  I think there are some things that are not being covered by your example. I will try some samples when I have some time and get back to you on this


Regards
Marlon
WPF Blog - http://marlongrech.wordpress.com/
Microsoft MVP for Client App



On Wed, Jun 9, 2010 at 1:46 PM, pcedendahl <notifications@codeplex.com> wrote:

From: pcedendahl

Ok,
If I create a module that I export like this:

[ExportView(RegionPosition = Region.LeftTop)]


In the "MainView" I have structured the layout with Regions, for example LeftTop region. MEFedMVVM will compose this and add it to a RegionManager that adds the correct View to the correct region. An DependencyObject in the XAML will make this happen.


Maby, if its possible, do it like you do it today in the xaml:

<UserControl x:Class="MEFedMVVMDemo.Views.SelectedUser"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
meffed:ViewModelLocator.RegionManager="RegionManager2"
</UserControl>

Under the hood MEFedMVVM will get all FrameworkElements (not sure about this) that has the Region DependencyObject (not sure about this ether) and add the views to the correct region.
Usercontrols, Windows etc can be layout in regions so it should be possible to tell witch RegionManager to use.
This will help alot. Just create a module and tag it somehow and put it in the Extensions folder and it will show up in the correct region.

Does this make sense to you???



Best regards,

Patrik Cedendahl,
System Developer
Sandvik IT Services AB
SE-811 81 Sandviken, SWEDEN

Office Phone: +46 26 262997
Mobile: +46 70 2728110
http://www.sandvik.com
patrik.cedendahl@sandvik.com

"marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 14:10:21:


> "marlongrech"
>
> From:
>
> "marlongrech" <notifications@codeplex.com>
>
> To:
>
> patrik.cedendahl@sandvik.com
>
> Cc:
>
> Date:
>
> 2010-06-09 14:10
>
> Subject:
>
> Re: Usage of MEFedMVVM [MEFedMVVM:215427]
>
> From: marlongrech
> I used PRISM regions before... my question was more how are you
> planning to use it
>
> Regards
> Marlon
> WPF Blog - http://marlongrech.wordpress.com/
> Microsoft MVP for Client App
>
>

> On Wed, Jun 9, 2010 at 12:57 PM, pcedendahl <notifications@codeplex.com
> > wrote:
> From: pcedendahl
> Have a look at this:
> http://www.codeproject.com/KB/WPF/PrismLayoutManager.aspx
> http://msdn.microsoft.com/en-us/magazine/cc785479.aspx#id0090091
> http://blog.raffaeu.com/archive/2010/02/07/build-enterprise-
> application-with-wpf-wcf-prism-and-entity-framework.aspx
>
> this one is maby interesting if it's possible to Mefify it.:
> http://csharperimage.jeremylikness.com/2010/01/auto-discoverable-
> views-using-fluent.html
>
>
> PRISM 4 seems to be quite good. Have a look at the RegionManager there.
>
>
> Best regards,
>
> Patrik Cedendahl,
> System Developer
> Sandvik IT Services AB
> SE-811 81 Sandviken, SWEDEN
>
> Office Phone: +46 26 262997
> Mobile: +46 70 2728110
> http://www.sandvik.com
> patrik.cedendahl@sandvik.com

> "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 12:37:41:
>
>
> > "marlongrech"
> >
> > From:
> >
> > "marlongrech" <notifications@codeplex.com>
> >
> > To:
> >
> > patrik.cedendahl@sandvik.com
> >
> > Cc:
> >
> > Date:
> >
> > 2010-06-09 12:38
> >
> > Subject:
> >
> > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> >
> > From: marlongrech
> > I will do a sample on that soon...
> >
> > Having said that, I would be interested to hear on scenarios where
> > you would need the Region Manager.
> >
> > Regards
> > Marlon
> > WPF Blog - http://marlongrech.wordpress.com/
> > Microsoft MVP for Client App
> >
> >
>
> > On Wed, Jun 9, 2010 at 11:29 AM, pcedendahl <notifications@codeplex.com
> > > wrote:
> > From: pcedendahl
> > Good, but still I just want to be dependent on only one framework.
> > Is it difficult to take PRISM RegionManager and implement it to your
> > framework? (are you aloud to do that?)
> >
> >
> >
> > Best regards,
> >
> > Patrik Cedendahl,
> > System Developer
> > Sandvik IT Services AB
> > SE-811 81 Sandviken, SWEDEN
> >
> > Office Phone: +46 26 262997
> > Mobile: +46 70 2728110
> > http://www.sandvik.com
> > patrik.cedendahl@sandvik.com
>
> > "marlongrech" <notifications@codeplex.com> wrote on 2010-06-09 11:29:31:
> >
> >
> > > "marlongrech"
> > >
> > > From:
> > >
> > > "marlongrech" <notifications@codeplex.com>
> > >
> > > To:
> > >
> > > patrik.cedendahl@sandvik.com
> > >
> > > Cc:
> > >
> > > Date:
> > >
> > > 2010-06-09 11:29
> > >
> > > Subject:
> > >
> > > Re: Usage of MEFedMVVM [MEFedMVVM:215427]
> > >
> > > From: marlongrech
> > > yes region Manager is something I am looking into... having said
> > > that there should be no problem using the PRISM Region Manager
> > > together with MEFedMVVM
> > >
> > > Read the full discussion online.
> > > To add a post to this discussion, reply to this email (
> > > MEFedMVVM@discussions.codeplex.com)
> > > To start a new discussion for this project, email
> > > MEFedMVVM@discussions.codeplex.com
> > > You are receiving this email because you subscribed to this
> > > discussion on CodePlex. You can unsubscribe or change your settings
> > > on codePlex.com.
> > > Please note: Images and attachments will be removed from emails. Any
> > > posts to this discussion will also be available online at codeplex.com
> > This e-mail is confidential and it is intended only for the
> > addressees. Any review, dissemination, distribution, or copying of
> > this message by persons or entities other than the intended
> > recipient is prohibited. If you have received this e-mail in error,
> > kindly notify us immediately by telephone or e-mail and delete the
> > message from your system. The sender does not accept liability for
> > any errors or omissions in the contents of this message which may
> > arise as a result of the e-mail transmission.
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> >
> > Read the full discussion online.
> > To add a post to this discussion, reply to this email (
> > MEFedMVVM@discussions.codeplex.com)
> > To start a new discussion for this project, email
> > MEFedMVVM@discussions.codeplex.com
> > You are receiving this email because you subscribed to this
> > discussion on CodePlex. You can unsubscribe or change your settings
> > on codePlex.com.
> > Please note: Images and attachments will be removed from emails. Any
> > posts to this discussion will also be available online at codeplex.com
> This e-mail is confidential and it is intended only for the
> addressees. Any review, dissemination, distribution, or copying of
> this message by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error,
> kindly notify us immediately by telephone or e-mail and delete the
> message from your system. The sender does not accept liability for
> any errors or omissions in the contents of this message which may
> arise as a result of the e-mail transmission.
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
> Read the full discussion online.
> To add a post to this discussion, reply to this email (
> MEFedMVVM@discussions.codeplex.com)
> To start a new discussion for this project, email
> MEFedMVVM@discussions.codeplex.com
> You are receiving this email because you subscribed to this
> discussion on CodePlex. You can unsubscribe or change your settings
> on codePlex.com.
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com

This e-mail is confidential and it is intended only for the addressees. Any review, dissemination, distribution, or copying of this message by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. The sender does not accept liability for any errors or omissions in the contents of this message which may arise as a result of the e-mail transmission.

Read the full discussion online.

To add a post to this discussion, reply to this email (MEFedMVVM@discussions.codeplex.com)

To start a new discussion for this project, email MEFedMVVM@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com