Questions tagged [cag]

15 questions
14
votes
2 answers

In Composite WPF (Prism), what is the difference between IRegion.Add and IRegionManager.RegisterViewWithRegion?

In Composite WPF (Prism), when adding modules to the IRegionManger collection, what is the difference between using IRegion.Add and IRegionManager.RegisterViewWithRegion? IRegion.Add public void Initialize() { …
Metro Smurf
  • 37,266
  • 20
  • 108
  • 140
3
votes
4 answers

How can I activate/deactivate a module's view after its initialization?

This relates to Composite Application Guidance for WPF, or Prism. I have one "MainRegion" in my shell. My various modules will be loaded into this main region. I can populate a list of available modules in a menu and select them to load. On the…
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104
2
votes
3 answers

More examples of Prism (Composite Application Library) Applications?

The examples that Microsoft's Patterns and Practices provides are quite helpful: about a half-dozen simpler QuickStarts which touch on specific issues the StockTrader reference implementation, which is a fairly rounded application but it lacks a…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
1
vote
1 answer

Registering Types at Runtime

I'm trying to figure out how to register a type at run-time using unity. Any Suggestions? Basically I want to be able to do this: Container. RegisterType(Of IMyInterface)( Type.GetType("Fully Qualified Type Name"))
Micah
  • 111,873
  • 86
  • 233
  • 325
1
vote
2 answers

How to use Prism within an ElementHost

I'm new to Prism and I am attempting to host a Prisim control within an ElementHost. I seem to be missing something very basic. I have a single WinForm that contains an ElementHost. The following code is in the form: public partial class Form1 :…
Mark Lindell
  • 852
  • 8
  • 19
1
vote
1 answer

Type.GetType for Interfaces

I am using PRISM (recently started). How do I dynamically resolve the interface type defined as the string and pass it to Container.Resolve? For example, I have an interface called MyNamespace.ITestInterface. I also have a string which holds the…
Ashish Sharma
  • 357
  • 2
  • 5
  • 16
1
vote
1 answer

How to add a Command to the items in a databound TreeView

How can I add WPF DelegateCommands to the items in a TreeView bound to an XmlDataProvider? I'm using the MVVM pattern and Composite WPF and I want the command to be called when the user double-clicks on an item in the TreeView. I have a TreeView…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
1
vote
2 answers

Organizing multiple Composite WPF applications to share a single Shell

How can I organize multiple Composite WPF applications so that they share a single Shell project but populate their module catalogs from different App.config files? I am writing a suite of applications using Composite Application Guidance for WPF.…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
0
votes
2 answers

Using Presenter in Prism

I am developing an application using PRISM in C# and WPF. I am new to this and would like to implement the Presenter. Basically, I would like to register a Presenter instead of View in my Module. At present I am doing the following in my Module…
Ashish Sharma
  • 357
  • 2
  • 5
  • 16
0
votes
5 answers

Will PRISM help?

I am considering building a application using PRISM (Composite WPF Guidance/Library). The application modules will be vertically partitioned (i.e. Customers, Suppliers, Sales Orders, etc). This is still all relatively easy... I also have a Shell…
rudigrobler
  • 17,045
  • 12
  • 60
  • 74
0
votes
2 answers

How to organize Enterprise scale Composite Applications (CAG)

All QuickStarts and RI examples in the CAG documentation are good but I lack the more Enterprise scale examples. Let's say we have 40+ modules, each containing a Proxy,Facade,PresentationModel,Model and Views. Each module also makes calls to a…
David
  • 581
  • 6
  • 15
0
votes
0 answers

Module Dependency for Directory Catalog - Microsoft PRISM

I am using DirectoryModuleCalatog to load the modules. What I am trying to implement is all the modules needs to be dependent on some specific module. For example, I have one MainModule and several orher modules, what I want is all my modules are…
Ashish Sharma
  • 357
  • 2
  • 5
  • 16
0
votes
2 answers

Complex View in WPF

I am working on a personal project. I started with a previous post (Point of Sale Application Architecture). Trying to Use- repository - service and View Modal - View approach Please see the attached image file. Most of my windows will have…
TheMar
  • 1,934
  • 2
  • 30
  • 51
0
votes
1 answer

How to send a parameter to an object's constructor with Unity's Resolve<>() method?

Using Unity in Prism, I would like to send a parameter to the object's constructor like this: PSEUDO-CODE: SmartFormPresenter smartFormPresenter1 = this.container.Resolve(); But instead I have to instatiate it and…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
0
votes
1 answer

Testing Composite WPF applications

How do I go about testing Composite WPF applications? I was looking at the Composite Application Library and the Stock Trader reference implementation for examples, but I don't understand how their tests are organized. I have several modules that…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243