While the sample code for the post is Silverlight, the Unity Configuration requirements are the same for WPF.
Have a great day,
Just a grain of sand on the worlds beaches.
This entry was posted on Thursday, March 10th, 2011 at 8:12 pm and is filed under C#, Navigation, Prism, Silverlight, Visual Studio 2010, WPF General. You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
7 Responses to Prism 4 Region Navigation with Silverlight Frame Navigation and Unity
[...] Silverlight, the Unity Configuration requirements are the same for WPF. Have a great day, Just… [full post] Karl Karl On WPF – .Net c#navigationprismsilverlight 0 0 0 [...]
I am going to have to dig into this example and understand how it works. I am currently working on a large project in SL, EF4, and utilizing Rocky Lhotka’s Csla framework. Am digging into Prism, both Mef and Unity and am torn between which one to use. I see some articles that Unity is dead, however, this article put out by you will definately slow it’s demise because you put a lot of time and effort into creating this example. I have listed pros and cons of each and am doing a small subset of the application to use both Mef and Unity to compare and contrast the two patterns.
If you could add a couple of pros and cons pertaining to each or some ideas on how to pick which one, that would be great. I know it would be tough as you have not seen the application, but just some insight from you would be most benneficial.
Thanks again for an awesome example. Looking forward to your Prism In The Box stuff in the future.
Thanks Karl, you are the man. Glad Unity is not dead because I like a lot of features of it but it just seems that MS is pushing Mef and all the stuff coming out is on Mef. Thanks for all the hard work and time you put into these examples for us developers to devour!
Yes, it is me again . In that project I am working on, I have a number of modules and have them contained in the ModulesCatalog.xaml. It seems that each time the application loads, the modules are loaded in a different order as displayed by the RadRibbonBar as I have each module containing a RadRibbonTab. Is there a way to ensure modules load in a certain order? I assumed (you, being a former Marine, knows what happens when you ass-u-me) that they would load in the order they were entered in the ModulesCatalog. But that isn’t happening. Anyway, any insight on loading order would be great.
[...] Silverlight, the Unity Configuration requirements are the same for WPF. Have a great day, Just… [full post] Karl Karl On WPF – .Net c#navigationprismsilverlight 0 0 0 [...]
[...] Prism 4 Region Navigation with Silverlight Frame Navigation and Unity (Karl Shifflett) [...]
Awesome Karl,
I am going to have to dig into this example and understand how it works. I am currently working on a large project in SL, EF4, and utilizing Rocky Lhotka’s Csla framework. Am digging into Prism, both Mef and Unity and am torn between which one to use. I see some articles that Unity is dead, however, this article put out by you will definately slow it’s demise because you put a lot of time and effort into creating this example. I have listed pros and cons of each and am doing a small subset of the application to use both Mef and Unity to compare and contrast the two patterns.
If you could add a couple of pros and cons pertaining to each or some ideas on how to pick which one, that would be great. I know it would be tough as you have not seen the application, but just some insight from you would be most benneficial.
Thanks again for an awesome example. Looking forward to your Prism In The Box stuff in the future.
CyclingFoodmanPA
The Prism Guidance has some information here: http://msdn.microsoft.com/en-us/library/gg430868(v=PandP.40).aspx
I use Unity because it is an IOC container, MEF is not. However, many people use MEF and are happy with it.
Best to study both, understand your requirements and make the choice that works for you.
BTW: Unity dead is total non-sense.
Cheers,
Karl
Thanks Karl, you are the man. Glad Unity is not dead because I like a lot of features of it but it just seems that MS is pushing Mef and all the stuff coming out is on Mef. Thanks for all the hard work and time you put into these examples for us developers to devour!
Have a great day,
CyclingFoodmanPA
Hi Karl,
Yes, it is me again
. In that project I am working on, I have a number of modules and have them contained in the ModulesCatalog.xaml. It seems that each time the application loads, the modules are loaded in a different order as displayed by the RadRibbonBar as I have each module containing a RadRibbonTab. Is there a way to ensure modules load in a certain order? I assumed (you, being a former Marine, knows what happens when you ass-u-me) that they would load in the order they were entered in the ModulesCatalog. But that isn’t happening. Anyway, any insight on loading order would be great.
CyclingFoodmanPA
Modules can have dependencies assigned to them. Check out the Modules chapter and search for the section, “Specifying Module Dependencies”
Cheers,
Karlo