Bxf's ShowView and managing sub-views

Bxf's ShowView and managing sub-views

Old forum URL: forums.lhotka.net/forums/t/10867.aspx


TSF posted on Thursday, November 10, 2011

Assume that, in my MainPage.xaml, I have a content control region that is populated with a view by calling Bxf.Shell.Instance.ShowView.

What do I need to do if I want the view that got plugged into the aforementioned region to have a similar structure (ex - its own content control that can be populated with subviews)?  Do I (or can I) still use the ShowView method to populate a content control in this view with subviews?

RockfordLhotka replied on Saturday, November 12, 2011

You should ask this in the bxf discussion forum on codeplex.

The short answer is that this isn't supported. Bxf is designed to support some relatively basic scenarios for the purpose of teaching people the concepts of MVVM, writing CSLA demos, and building relatively straightforward apps.

To make this work though, wouldn't be that hard. Bxf uses a singleton model for the shell instance. What is needed is a slight alteration so Bxf would allow multiple shell instances. One main shell instance for the app, and then individual shell instances for regions that want to have sub-regions.

The potential good news? Bxf is open source, and I'm very happy to allow people to make enhancements to the framework - as long as the framework remains simple enough that it can be used for teaching MVVM concepts. A change like I'm talking about would be a fine thing :)

Copyright (c) Marimer LLC