prism

Help Trying To Learn Prism

I need to learn prism (for evaluation to use at my work). I am confused on the version I should be using to learn with. I see from the site that there is a version 4.0 that is having active drops. I also see that the previous version is 2.2. Which version should I learn on? I don't want to learn 2.2 if 4.0 is a drastic change. Howe...

Large Prism/Silverlight application - multiple modules talking to single data service

I am developing the framework for what will be a large data-driven Silverlight application using Prism. I am creating multiple modules for different pieces of the application, but all modules need to access data from the same REST webservice. So my initial plan was to create a separate module for the data retrieval and use EventAggregato...

Is the Prism dll's for Silverlight and Desktop the same set of dll's?

Are the prism dll's the same for both platforms? If so, im assuming them to be Silverlight assemblies since Silverlight (the last i checked) can not reference non-silverlight assemblies. ...

Does unity just make clasess with out needing anything registered?

I am watching Mike Tautly's awesome intro to Prism. It was all making sense, but I got a bit confused in the sixth video. He has his view class's constructor take a parameter of the ViewModel. He then says that unity will fill this in for us (ie construct it). In the past he has had to register this kind of thing (ie IMyClass registe...

Books on Rx and PRISM/CAL + MVVM

Are there any good books that explains Rx, MVVM, PRISM/CAL from ground up? I googled, but could not find anything that covers all these three. ...

Changing Modules location in specific region

Hi all, I've Prism App with some regions. In one specific region there are some views from different modules. By default the views appears in region according to registration order. I want to change the order appearance of views so that view from module c will appear first and not last. I know it's possible to tell the module to depe...

Best Practice WPF Prism Resources

I have a a WPF prism desktop app with a few modules. In the past I've put all my localized resources in common resource files in the infrastructure assembly and referenced it in all modules. But lately I have been wondering if that is indeed the right approach from a maintainence perspective. In essence it also sort of breaks modularit...

Silverlight Sculpture generated application locking up on service calls (on some machines)

We have an application generated using the Sculpture software package. That means the project is roughly equivalent to the code in a Prism application. Part of their model is that all WCF Service calls are performed synchronously, but on background threads (actually they are async calls as well, but the Sculpture background thread metho...

NullReferenceExeption thrown in NotifyPropertyChanged when switching views with edit in progress

I have a series of views that are to be displayed depending on the currently selected item in a tree within a parent view. These views are created and registered with the region during the initialization method of the parent view and are being correctly deactivated/activated, therefore giving the effect of swapping in/out the correct vie...

Resolving a type without registering first - prism 4 and Untiy

First of all I would like to remark I am new with the concept of prism, DI and containers. I am looking on one of the code samples provided with the Prism Library: The code simply injects a view with the "Hello World" string (in a TextBlock element) to a region in the shell. When the application starts-up, it creates a new BootStrapper ...

Prism for .NET 3.5 and EntLib 5 (or Unity 2)

Hello, is it possible to develop with Prism under .NET 3.5 using EntLib 5? According to documentation, Prism 2.1 targets .NET 3.5, but it works with EntLib 4. And Prism 4 works with EntLib 5, but in requirements section of documentation said that .NET 4 is required. The question is: can I develop with Prism using EntLib 5? I already use...

Silverlight Prism Event Aggregator not reliable.

Hi, I'm experiencing some reliability issues with Prism/Silverlight. I got couple of modules one publishing events and other subscribing. Every time when I run the application from VS on debug mode by pressing "F5", the events are published and subscribed as expected. However, when I run the application from visual studio by pressing "...

PRISM UserControl and ServiceReference

I'm using MVVM in my project and here is my question. I have a View and corresponding view-model with service reference. This view contains UserControl, which have another UserControl and it also contains nested UserControl. Last UserControl have a method which creates a popup. And in this popup i need service reference from view model. ...

DevExpress BarManager with Prism

Hello folk, I'm writing an application using DevExpress controls and Prism. I have a BarManager in the shell with the main menu bar and marked this bar as a region. <dxb:BarManager Name="barManager"> <dxb:BarManager.Bars> <dxb:Bar Caption="Main" IsMainMenu="True" UseWholeRow="True" cal:RegionManager.RegionName="{x:Static in...

Can Prism and ASP.NET Web Parts work together?

We are trying to pick a modular programming solution at my work. The choice right now is Prism or ASP.NET Web Parts. One Boss person asked if you could wrap a Prism Module in an ASP.NET Web Part so they can be used anywhere (kind of a "can I have my cake and eat it too" kind of question.) While I don't think this is a feasible solutio...

Prism v4 Loading modules on demand with DirectoryModuleCatalog

In my bootstrapper I have the following code to create my Directory ModuleCatalog protected override IModuleCatalog CreateModuleCatalog() { DirectoryModuleCatalog catalog = new DirectoryModuleCatalog(); catalog.ModulePath = @".\Modules"; return catalog; } but all my modules seem to be loading when the shell gets created. H...

prism wpf: how to show views/modules in one region

Hello! I have a Shell class with one region. I created a module which shows,for example, a list of offices. When I choose one of offices I want to show another module where I want to transfer information about chosen office. Questions: what is better: to create another module or maybe to create just another view in existing? (if I sti...

How to stop Silverlight browser history recording NavigationState/bookmark changes?

We have a Silverlight Prism project with complex state information stored in the browser bookmark. This allows us to share bookmarks/links which will restore the application to the exact same visual state. We do not however want trivial bookmark changes (i.e. non-navigation changes) to result in a browser history entry. Otherwise the br...

Creating domain model objects from oracle ref cursor

Hi I am using an Oracle Stored procedure that returns ref cursor. Then fill a datatable with that cursor and then iterate datatable and create my model objects. That seems a bit lame and time consuming. What would be a better aproach without using ORM tools of Entity Framework. The other problem with using datatable is that I cant reuse...

How do I add a tracing interceptor for all classes within Prism?

I am trying to add a tracing interceptor to all the components of my Prism application using an interface interceptor. I almost have this working however the interceptor is having problems with interfaces that declare an event. Has anyone successfully implemented aop tracing for all components without the need for attributes? Here is ...