ProjectEdit / CollectionViewSource question

ProjectEdit / CollectionViewSource question

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


TSF posted on Friday, November 04, 2011

In the ProjectEdit user control in the new ProjectTracker example, the CollectionViewSource named "projectGetterViewSource" has no source defined for it.  On page 102 of the e-book, it states that "the first resource will contain the root viewmodel for the view."  Here is the xaml line in question:

<CollectionViewSource x:Key="projectGetterViewSource"/>

At what point is the source for this collection view source specified to be the ProjectGetter viewmodel? Is it hooked up in some other way at run-time?

RockfordLhotka replied on Monday, November 07, 2011

It is hooked up via Bxf. See the section in the ebook that discusses how Bxf works, and specifically how it creates and initializes the view.

TSF replied on Tuesday, November 08, 2011

Duh...I just didn't put the two together in my mind (what I was looking at in the XAML and the BXF's ShowView method).  Thanks.

Copyright (c) Marimer LLC