Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Simple Dependency Injection with XAML

11 minutes, 10 seconds


Right click “Save as…”

Have you ever wanted the flexibility of dependency injection without having to implement a full-blown IoC solution?  Maybe you just want an easy way to pass concrete services to your ViewModel?  This short video will show you you can use XAML to configure your ViewModels to provide a property-based dependency injection solution.  You can also read a full write up and download demo code on my blog.


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • markmark

    Great topic, but video has serious granularity problems :(

  • @mark: Hi mark.  Sorry for the video problems.  I messed something up somewhere along the way.  I have re-processed the vid and the HiQuality files are much better.  The default vid may still be choppy depending on bandwidth.

  • markmark

    @SlickThought: Video is clear now :)     You've done a nice job of isolating DI-->XAML without getting the viewer lost in a complex example.  Well worth the viewing!

  • Dave Williamsondavewill here birdie birdie, get in my belly!

    nice job!  focused and demonstrable.

  • @cellra: I am constructing the dependency in XAML and then binding it to the property I want to inject into.  There is no code behind used for the injection itself.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.