Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 2 results for Brian Genisio.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • Adventures in MVVM – ViewModel Location and Creation

    0 comments  /  posted by  Silverlight Show  on  Jun 07, 2010 (2 weeks ago)
    Tags: ViewModels , MVVM , WPF , Silverlight 4 , Brian Genisio
    In this post, Brian Genisio demonstrates how he attaches ViewModels to his Views. And the code to his ViewModelSupport project is available on CodePlex in case you'd like to see how it works along with some examples. 

    My approach to View-First ViewModel creation has evolved over time.  I have constructed ViewModels in code-behind.  I have instantiated ViewModels in the resources sectoin of the view. I have used Prism to resolve ViewModels via Dependency Injection. I have created attached properties that use Dependency Injection containers underneath.  Of all these approaches, I continue to find issues either in composability, blendability or maintainability. 



  • 0 comments  /  posted by  Silverlight Show  on  May 17, 2010 (1 month ago)
    Tags: MVVM , C# , WPF , Brian Genisio
    Brian Genisio continues his Adventures in MVVM series with an update of his ViewModel base class.
    When I wrote about the ViewModel base class, I complained that the features did not work in Silverlight because as of 4.0, it does not support binding to dynamic properties.  Although I still think this is a bummer, I am happy to say that I have come up with a workaround.  In the Silverlight version of my base class, I include a PropertyCollectionConverter that lets you bind to dynamic properties in the ViewModelBase, especially the convention-based commands that the base class supports.

Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)