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 with a main region were all the work will happen but now I need the following behavior: I nee...
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 click of the menu I do:
var module = moduleEnumerator.GetModule(moduleName);
moduleLoader.In...
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 more useful base application that reads and writes to a data source (XML or database), al...
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"))
...
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. Each application's functionality is determined by the availability of different modules, w...
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 are compiled to DLLs and referenced by my main shell. What do I need to do to test the ind...
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 defined in XAML whose DataContext is set to the XmlDataProvider:
<TreeView
xmlns="htt...
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<SmartFormPresenter(customer)>();
But instead I have to instatiate it and then assign a property:
SmartFormPresenter smartFormPresenter1 =
this.container.Re...
Hello Guys,
I am working on a personal project. I started with a previous post (http://stackoverflow.com/questions/1215650/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 multiple views.
My Questions are...
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 : Form
{
public Form1()
{
InitializeComponent();
Bootstrapper boots...
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()
{
_regionManager.Regions["MainRegion"].Add( new ModuleAView() );
}
IRegionManager.RegisterViewWithRegion
public void Initi...
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 Module-specific WCF service which is to be hosted in IIS or in a stand-alone console host. Ou...