Avatar of basil365
Flag for Ireland asked on

WPF Prism Design Question

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 (http://msdn.microsoft.com/en-us/library/ff921173%28v=pandp.20%29.aspx ) 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.

C#.NET ProgrammingProgramming Theory

Avatar of undefined
Last Comment

8/22/2022 - Mon
Kyle Abrahams

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

This is perfect. Thanks.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes