Is this the correct why of speaking to a "Content Manager" Class?

Posted by DeanMc on Stack Overflow See other posts from Stack Overflow or by DeanMc
Published on 2010-06-08T23:17:31Z Indexed on 2010/06/08 23:22 UTC
Read the original article Hit count: 195

Filed under:
|
|

I am creating a silverlight site. I am currently breaking out my ideas into pieces of functionality. One of the idea's I have is the concept of a content manager. This is essentially a UI control with 4 regions. Top, Bottom, Right & Left. I also have a collection of objects that are considered "Menu Items". These are controls that function as a way to navigate around, similar to links.

The idea I have is to implement an IMenuItem interface. Among the standard pieces of information (Text, PageReference, etc) I was also going to hold a reference to the content manager. My idea behind this thinking is that I can pass the PageReference to a property on the ContentManager and then call a method which knows how to update the content manager accordingly.

Is this the best way of implementing this or is their some sort of pattern for it?

© Stack Overflow or respective owner

Related posts about c#

Related posts about design-patterns