Share via


MIX 10: Silverlight 4 Business Applications

Another talk, another blog post.  As you can see, my blog posts are like my babies… in the fact that they apparently take 9 months to make.  I’ll see if I can’t speed things up next time, but we’ll see.

For all of you who came to MIX, and those who are just interested in what Silverlight 4 has done for business applications, below is the content from my MIX talk. 

The talk was a lot of fun, and my apologies to anyone who got turned away at the door because the room was packed.

Recording

You can find a recording of the talk here: https://live.visitmix.com/MIX10/Sessions/CL08 

Downloads

For those of you who want to follow along at home, here are the files for the demos that I showed in my presentation.

What you’ll need

All demos were done using the free MIX10 Silverlight 4 RC bits and accompanying tools:

These include

The installation instructions for all of the above and other SL4 tools can be found here: https://silverlight.net/getstarted/silverlight-4/

Project

You can download the samples and snippets here: https://cid-e7a27f7920b66c3f.office.live.com/self.aspx/Downloads/MIX10%5E_CL08.zip?lc=1033 https://drop.io/MIX10CL08/asset/mix10-cl08-zip

Notes

Building and Running Either the Final or Start Project

  1. If you are getting a “Visual Studio Project Sample Loading Error” it is because you need to unblock the zip file.  Directions on how to do that can be found here
  2. The dlls for any broken References can be found in the Project’s Lib directory
  3. There are a few known issues that you might run into that have been fixed in later bits

Recreating the Project From the Start Folder

  1. If your DataSources window is empty, try building
  2. The Toolkit dlls are included to allow the sample to run and shouldn’t be used outside of the sample.  The fully supported dlls will be shipping in the next Toolkit drop which ships alongside Silverlight 4 RTW.
  3. The designer files for the Toolkit were not included in the project, so the Charting section is likely to not work as smoothly as in the video.  As mentioned when the supported Toolkit is used such issues will not be present.

Slides

You can download the slides here

 

What we covered:

We covered an huge amount of content but we still didn’t even cover all of the new features for LOB in Silverlight 4.

Displaying data

  • WCF .NET RIA Services
  • Data Sources Window
  • DataGrid Column Editor
  • Binding enhancements
  • DataGrid enhancements
  • DataForm
  • Sorting
  • Grouping
  • Charts

Professional look and feel

  • ICommand
  • Right-Click
  • Context Menu *
  • Implicit Styles
  • Theme switching *
  • Mouse wheel support in list controls

Getting user input

  • Webcam
  • Drag & Drop

Validating user input

  • INotifyDataErrorInfo
  • Cross-field Validation
  • Async Validation

Saving data and sharing it

  • Clipboard
  • Printing

* Coming in the next drop of the Toolkit

Comments

  • Anonymous
    March 17, 2010
    Hi Scott, I tried to download your code but there is nothing.. Did your link is accessble ? Anyone has downlaoded the sourcecode? [link snipped]

  • Anonymous
    March 18, 2010
    Scott, I'm having the same download problem. Nothing downloads! ..Ben

  • Anonymous
    March 18, 2010
    When is the next drop of the toolkit?

  • Anonymous
    March 18, 2010
    Seems like the zip file has a zero size.

  • Anonymous
    March 18, 2010
    Ben, nicolaspei: Thanks for the heads up on the download issues.  It looks like I exceeded my bandwidth limit so I have moved the download to a mirror site. (Updated download link is in the post)   James: The next drop of the Toolkit will drop with Silverlight 4 RTW.  

  • Scott
  • Anonymous
    March 18, 2010
    The comment has been removed

  • Anonymous
    March 18, 2010
    Hi Scott, Thanks for your update. Thanks again. Nicolas

  • Anonymous
    March 19, 2010
    Hi Trees, Thanks for the heads up.  The download has been updated to include all of the necessary dlls.  Please see the notes section however to see the limitations. As far as your questions:

  1. The new Silverlight 4 binding work was not part of the SL3+ work that made it into the phone, so for now expect a Silverlight 3 validation experience.
  2. The ThemeUri feature is part of the next drop of the Silverlight Toolkit which you can expect when SL4 RTW ships.
  3. There are a few ways that you can do this, one of which is adding an additional property to your object to indicate that a validation is in progress.  You can then check this property in your application and not allow a commit until it is no longer busy.  We have discussed having an interface that standardizes this process, but for SL4 you will have to do it yourself. As far as controlling if there are more pages, it is up to the app author since every application is different.  For instance, the PageSize property that is exposed can be used for pagination scenarios if you have a long list of items.
  • Scott
  • Anonymous
    March 19, 2010
    Awesome, thanks again!

  • Anonymous
    April 13, 2010
    Is the toolkit still going to drop on Thursday (Silverlight RTM)??

  • Anonymous
    April 15, 2010
    Hi James, Yes it is, you can find it here: http://silverlight.codeplex.com/releases/view/43528 -Scott

  • Anonymous
    May 06, 2010
    You've had a very nice talk .. now you're my 2nd spokesman after Scott Hanselman. Joy, passion and ... I believe a lot of preparation! I only have a suggestion: please specify in your article that the database used is ONLY in the final application from zip file, otherwise the ones using the start one wouldn't know where the database is. Best regards, Radu Microsoft Student Partner, Germany

  • Anonymous
    June 01, 2010
    Hi Scott, A nice presentation and sample. I tried to run the finished application and got the following errors. I added the required assembly references and still getting the same errors. Any help is really appreciated. Error 26 The type or namespace name 'Chart' could not be found (are you missing a using directive or an assembly reference?) MIX10_CL08MIX10_CL08MIX10_CL08FinishedMIX_CL08MIX_CL08objDebugViewsHome.g.i.cs 82 18 MIX_CL08 Error 1 The type or namespace name 'Theme' could not be found (are you missing a using directive or an assembly reference?) MIX10_CL08MIX10_CL08MIX10_CL08FinishedMIX_CL08MIX_CL08objDebugMainPage.g.i.cs 40 18 MIX_CL08 Thanks, Samanf

  • Anonymous
    June 02, 2010
    Hi, I have a problem with the version of the database, the program can't load it and tell me that the current version of the database is 655 and my system can support only 612. What kind of database is it ? thanks, fred

  • Anonymous
    June 23, 2010
    Hi Scott, i have seen your presentation and sample, i think is is very fantastic. However, can you show an example how one can use your sample  with MVVM or Prism. I have been having difficulty with the issue. Secondly how can one display combobox with DataForm---- say categories in a product form. Kind Regrds Benjamin

  • Anonymous
    August 17, 2010
    Hi Scott, Nice presentation!!, Can you post a direct download of the sample code?. Drop.io server reached the limit downloads. Thanks

  • Anonymous
    September 10, 2010
    I have updated the download link so it should be up and running again. For those of you who are having trouble building - please be sure to replace all broken references, and make sure to Unblock all files. Thanks, Scott