troubleshooting Question

WPF Prism Design Question

Avatar of basil365
basil365Flag for Ireland asked on
.NET ProgrammingC#Programming Theory
2 Comments1 Solution714 ViewsLast Modified:
I’m in the process of designing a WPF application that will have quite a complex GUI. I’m trying to decide the best way to develop this and have come across Prism.

The application will allow users to select items from a TreeView. The items (let’s say Buildings) will then be used to create an instance of a custom UserControl which will be loaded on to another container on the interface.

Each Building Control will contain two levels of objects within it (Apartments -> Residents). So, user selects a Building, which contains a variable amount of Apartments, and each Apartment contains a variable amount of Residents. With each level having a distinct UserControl, with separate attributes, operations etc.

When a user selects a Building it will need to retrieve details of that Building and all objects underneath it. The user will then be able to make updates at any level and apply them to the object. All retrieval / updating will be handled in a separate DLL via a few calls from the interface.

What I’m trying to work out is the best design pattern to use for the above situation. I’ve been looking at the examples that come with Prism but I’m not sure which is the best approach.

The Event Aggregation ( ) makes the most sense to me as one container is sending objects to the other, but as I said this technology is very new to me.

I’d really appreciate any advice at all on how to get started.

Kyle Abrahams
Director of Information Technology

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros