Web View Bug

Building Amazing Business Centric Applications with Microsoft Silverlight 3

Thursday, March 19, 2009
Come hear how simple it is to build end-to-end data-intensive Silverlight applications with the new set of features in Silverlight 3 and .NET RIA Services. Explore Silverlight improvements that help to enable rapid development for business applications and to make your development process more productive.
  • Brad Abrams
    Brad Abrams was a founding member of both the Common Language Runtime, and .NET Framework teams at Microsoft Corporation where he is currently the Product Unit Manager of the Application Framework team which is responsible for delivering the developer platform that powers breadth Rich Internet Applications and core innovations in the .NET Framework.  Specific technologies owned by this team include parts of Silverlight, the Managed Extensibility Framework and Windows Forms.  Brad has been designing parts of the .NET Framework since 1998 when he started his framework design career building the BCL (Base Class Library).  Brad was also the lead editor on the Common Language Specification (CLS), the .NET Framework Design Guidelines and the libraries in the ECMA\ISO CLI Standard.     Brad co-authored Programming in the .NET Environment, and was editor on .NET Framework Standard Library Annotated Reference Vol1 and Vol2 and the Framework Design Guidelines.    Brad graduated from North Carolina State University in 1997 with a BS in Computer Science.  Find recent musings from Brad on his blog at:http://blogs.msdn.com/BradA/

32 Comments

  • Ulf E (gravatar)

    Ulf E said
    March 23, 2009

    Don't work in Chrome, don't work in IE 7, but works fine in Firefox.

  • Nanny (gravatar)

    Nanny said
    March 23, 2009

    Silverlight 3?
    Maybe they should stop producing this bullshit already.
    Totally useless.
    In real world no one uses that crap!

  • Anita (gravatar)

    Anita said
    March 24, 2009

    Excellent demo! Thanks Brad! Great work!
    I also liked that you actaully used IE in you demo. Many MS presenters I have seen use firefox which is quite ironic. :)
    I can't wait to explore SL3/RIA more.
    few questions ...
    1. IS it possible to see dirty flags in master datagrid? I would then know how many records I have changed. Same with the new Employee record or delete employee record. (hopefully different kind of flag for these two). Is that dirty bit display cutomizable?
    2. What is the best suggestion to arrange folders/projects in the Silverlight solution? especially folder structure in web project when the project is big.
    3. I would also like to see examples of(MVP/MVVM) patterns or any recommended pattern for Silverlight and how it works wih SL 3/RIA.
    4. Conflict resolution - any example/demo?

    Sorry for the long reply, I am just too excited about the product and where it is going.

    Thanks!

  • Thank you for creating and adding so much value to Silverlight making our personal investment in learning WPF\SL worth of gold!

  • Any ideas on when Microsoft is going to ship .NET RIA Services RTM or Beta? I have already prepared a worthy niche for it in my projects.

  • Good presentation. Good info.

  • I'm not a big fan of Virtual Machine-based RIA tecnologies (Silverlight, Flash/Flex, JavaFX, etc), but this started to look interesting. Finally getting beyond the media player functionality. Thanks for the demos.

  • n0mad (gravatar)

    n0mad said
    April 27, 2009

    Nanny says "Silverlight 3?
    Maybe they should stop producing this bullshit already.
    Totally useless.
    In real world no one uses that crap!"

    Sorry Nanny, if you want to compare "real world" apps that I've seen (the horror, the horror), Silverlight 3 is a pretty viable framework. We have several clients on board, in design phase and SL3 is our target tech. We were looking at Adobe AIR, but SL3 out of browser lets us leverage the client's teams and our firms .NET training (which between development and maintenance is the real story and the real world).

  • Nanny (gravatar)

    Nanny said
    April 27, 2009

    I think nanny is pretty confused about what SL3 is, RIA services will be a reborn of silverlight and by far will more than ever be the option to develop RIA applications for the web, at least a platform that has it all

  • Tom Madden (gravatar)

    Tom Madden said
    May 10, 2009

    Is the code for this available for download, it really should be clearly linked from here

  • Tom Madden (gravatar)

    Tom Madden said
    May 10, 2009

    A walkthrough and the source code is available at this address:

    http://blogs.msdn.com/brada/archive/2009/03/17/mix09-building-amazing-business-applications-with-silverlight-3.aspx

    The blog address is mention at the very end of the video, then you've got to hunt for it, a clear and direct link on this page would have been useful to have to hand while watching the video

  • Roger (gravatar)

    Roger said
    May 30, 2009

    Were there breaking changes in the May preview that would affect someone working based on this video? For instance in the video "using MyApp.Web;" is where I am stuck.

  • Doug (gravatar)

    Doug said
    June 19, 2009

    Ditto to what Roger says.

  • Vasile D (gravatar)

    Vasile D said
    June 21, 2009

    Very good stuff :)

  • bao (gravatar)

    bao said
    July 12, 2009

    As I saw in the demo, can I re-style the page layout?

    anyway, this is a great demo.

  • saurav (gravatar)

    saurav said
    July 18, 2009

    gr8 session

  • Rob (gravatar)

    Rob said
    July 19, 2009

    Hello. Great demo, and I love Silverlight 3. I have an existing application with a silverlight (was version 2) gui connecting to WCF services. I was wondering, is there any way to leverage that great filtering/sorting technology without throwing away my entire middle tier and rewriting to use this RIA context-service stuff?
    Many thanks,
    Rob

  • Gibran (gravatar)

    Gibran said
    July 23, 2009

    Hi, Brad!!
    I from Brazil
    Very nice demo!!

    I have one problem after open your demo in vs 2008.
    The problem is the reference of project MyApp.Web in project MyApp!

    How to reference this project?

    Tanks!



  • i m going to start building these soon.. nice work.

  • Andy (gravatar)

    Andy said
    August 03, 2009

    Two questions:
    1. At 18 minutes into the video, Brad auto-generates the NorthwindDomainService code, and at 31 minutes, he adds hand-scripted code into the generated file. This is bad. Could this have been done using partial classes?
    2. Could the data validation have been done by making the domain class implement IDataErrorInfo rather than using DataAnnotation attributes?

  • I am trying to walk through the demo with the released version of SL3 and RIA, but I ran into some snags. One, in the video, you call the LoadEmployees() method on the context object to load date into the DataGrid (see video at 22:00), but in my application, there is not code gen LoadEmployees method. Could this be something that changed since this video was published? How does one load the data on the client side now?

  • Bogdan (gravatar)

    Bogdan said
    August 13, 2009

    @Rashad Rivera

    Here's how to get the data with the latest release of RIA Services (July 2009):

    AdventureworksContext riaContext = new AdventureworksContext ();

    EntityQuery query = riaContext.GetSalariedEmployeeQuery();
    LoadOperation loadOp = riaContext.Load(query);
    this.dataGrid1.ItemsSource = loadOp.Entities;

    Read an up-to-date walkthrough about this here:

    http://code.msdn.microsoft.com/RiaServices/Release/ProjectReleases.aspx?ReleaseId=2387

  • Shawn (gravatar)

    Shawn said
    August 14, 2009

    I am having problems with the DomainDataSource. When I try to use the DomainDataSource nothing is displayed in my data grid, though if I go away from the DomainDataSource and use the context to set my data grid itemsource from my xaml.vb file it seems to work fine. I would really prefer to use the DomainDataSource. Has anyone else had similiar problems and if so can you tell me how you have resolved the problem? Thanks.

  • Shawn,

    Without looking at your code (or knowing how you wired up the controls), I can only speculate as to the cuase of the issue. However, from initial experience, if you don't use the "QueryName" property on your DomainDataSource control, it won't automatically load the data. Here is a "gotcha" for you just in case, the value of the "QueryName" must the name of one of your query methods you defined on the Web side. I *think* you can declare query methods on the client-side code, but I have not researched that as of yet.

  • Ashish Sayal (gravatar)

    Ashish Sayal said
    August 26, 2009

    Use this code:

    var ctx = new CountryDomainContext();
    DomainDataSource dds=new DomainDataSource();
    dds.LoadSize = 20;
    dds.QueryName = "GetCountryQuery";
    dds.AutoLoad = true;
    dds.DomainContext = ctx;
    dds.Load();
    CountryGrid.ItemsSource = ctx.Countries;

  • Ashish Sayal (gravatar)

    Ashish Sayal said
    August 26, 2009

    Very important:

    DomainDataSource in SL3 RTM version doesn;t have method named "LoadMethodName" and it is replaced by QueryName. Pls see my previous post on it.

    Very difficult to find info on what got changed from this demo. I request Nikhil/Brad to post changes or update the demos'.

  • Nhale (gravatar)

    Nhale said
    August 30, 2009

    Where's this funny little wire go? Amazing spaces online these days!

  • I think a nice add-on have not tested it but thanks for sharing

  • Srinath Subramani (gravatar)

    Srinath Subramani said
    September 17, 2009

    Mind openner

    Brad it was an amazing Demo.

    I love to work in SilverLight this was a eye openner
    to the new View about Silverlight its coooool.

    Thank You so Much....

  • Patrick (gravatar)

    Patrick said
    December 15, 2009

    Creating my on example based on this, it works until I try to go to page 3. The activity control shows activity to theserver, but only the first 20 records are again returned.

    Do I need to adjust my Entity Query to except to data page I want to return?

    thanks
    prussell

  • prussell (gravatar)

    prussell said
    December 15, 2009

    Appearantly the DomainDataSource needs to have a SortDescriptor.


    http://forums.silverlight.net/forums/p/150714/336262.aspx#336262

    prussell

  • We
    highly appreciate you.
    This is very Useful Video.Great Job…..

Your Information
Mrs. Gravatar (gravatar)

<-- It's a gravatar

your comment

Recent

  • Thumbnail for Ask The Gu
    Ask The Gu
    Wednesday, March 25, 2009 As a special offering for the viewing audience at home, 30 minutes after Scott Guthrie walked off the stage, he came back for a live, intimate, online-only video chat