Sunday, January 22, 2012

Video: Getting Started with Jounce MVVM and MEF for Silverlight 5

I created a quick video to help you get started with using Jounce. The video starts with a blank slate, steps through installation of Jounce and the creation of a sample view model for a simple contact record that includes validation.

You can access the video directly at http://vimeo.com/jeremylikness/jounce-getting-started, or view it below:

Jounce: Getting Started from Jeremy Likness on Vimeo.

Jeremy Likness

16 comments:

  1. I tried to setup a blank project like you did and debug it, but the basic barebone setup throws an exception in browser:
    Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei System.Windows.Application.Application_Starting(Object sender, StartupEventArgs e) bei MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) bei MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

    Maybe you could give me a hint what to do.

    ReplyDelete
  2. Did you delete the App.xaml and MainPage.xaml files?

    ReplyDelete
    Replies
    1. Yes, I did exactly step by step like you did in the video tutorial. (VS2010, SL5, SL5 Toolkit installed)

      Delete
    2. Not sure what the issue is then - I've done this several times without issue. Wonder if anyone else is experience similar problems? Strange.

      Delete
  3. Hello,
    I got the same error message (albeit all in English) as the writer on 23/1 when following the video.

    rgds

    Howard

    ReplyDelete
  4. Thanks for letting me know. I'll have to explore what is going on - maybe try it on a new system. Thanks.

    ReplyDelete
  5. Same issue here. Perhaps it's because I've never created a Silverlight project before? Security settings or something related?

    ReplyDelete
  6. Same Issue here....I have a screen capture video of it if anyone wants to see, but I just followed the instructions.

    It's a shame really as I was just about ready for a deep dive into Jounce.

    ReplyDelete
    Replies
    1. I would love to see a screen capture - feel free to use the contact form on the Jounce CodePlex sign to reach my personal email and we can connect there. Everyone, I will definitely work to fix this shortly. In the meantime there may be a workaround - I'll see what I can find and update everything accordingly. Thanks for your patience. You should be able to add Jounce, export the main page as the shell, and set up the ApplicationService in the Application.LifetimeObjects for now as a workaround.

      Delete
  7. I had the same issue, but I solved it by adding a reference to System.Windows.Interactivity in c:\Program Files (x86)\Microsoft SDKs\Expression\Blend\Silverlight\v5.0\Libraries\System.Windows.Interactivity.dll
    I found it there after installing the Blend preview for Silverlight 5.

    @Jeremy, also the jounceSln does not compile without 'refreshing' that same reference.

    HTH

    SiKo

    ReplyDelete
    Replies
    1. Thanks! That is very helpful. I'm going to add that reference to the NuGet package and retest on a new machine and we'll see if that fixes it - I'll follow up with a new post when I do. Appreciate everyone's assistance and patience with this!

      Delete
    2. Jounce 2 via NuGet seems to be fine now :)

      Delete
  8. OK I believe the latest version will work. There is a dependency on Expression SDK, so if you don't have Blend but install the SDK you should be fine, however I added the dependency into the package so again, should work fine for everyone. Thanks everyone for your patience and feedback to help me troubleshoot the issue.

    ReplyDelete
  9. Love Jounce so much ! You did such an amazin job ! Jounce desearve to be the #1 framework for Silverlight application :)

    ReplyDelete
  10. Jeremy, in SL5 you can simple specify TextBox.Text binding option UpdateSourceTrigger=PropertyChanged to avoid over-blending your code to flush text on TextChanged ;)

    Best regards, Lex Lavnikov

    ReplyDelete