Last week I gave a 3 hour “What’s new in Silverlight 4” talk to the Hungarian Silverlight UG, the Silverlight Klub. I had a LOT of demos, – most of which I prepared, and some I borrowed. The aim of the demos was to give a small code sample to most new features in Silverlight 4, without going deep. In this blog post, I am making those demos available for the general public in one big download.
The demos:
ClipboadTest: shows off basic Clipboard programmability
CollViewSourceGrouping: Datagrind grouping via CollectionViewSource
ContextMenuDemo: basic ContextMenu usage
CrossDomainAccessTest: Simple twitter feed downloader app that shows how you don’t need a client access policy for OOB Elevated trust applications. Also, automatically requests twitter username / password as the Twitter API requires it, too.
CustomChromeTest: Shows off Elevated Trust features such as rounded borders, custom minimize / maximize / close buttons, draggable areas and window resizing.
DatabindingTest: demonstrates new databinding capabilities of Silverlight 4: FallbackValue, String formatting, accessing indexers and TargetNullValue. Also demonstrates binding to a dependency object.
DynamicLayoutAndTransitions: Kenny Young’s excellent MIX’10 demo upgraded to Silverlight 4 RTM.
FileDropTest: drop an image from your computer onto this Silverlight app, and it will be added to a list. Also, ListBoxItem’s new BeforeLoaded state is shown off.
FileSystemAccessDemo: Lists all files within the user’s Documents folder in an OOB Elevated app.
FullScreenTest: Shows how full screen can be sticky (not cancelled when the app loses focus), and also how elevated OOB apps no longer restrict using the keyboard in full screen.
NativeIntegrationTest: Again, an OOB Elevated feature: launches Microsoft Word and enters some text.
Printing: Shows how to do simple “print screen” printing, and also how to have a report-like multi-page printout (complete with headers, footers) of system colors. The report template is fully editable in Blend. Eat that, Access!
RichNotepad: This is the same demo that Scott Guthrie showed at Mix’10, featuring RichTextbox with embeddable datagrid, image, calendar, right-to-left mode, and printing with print preview.
SelectedValueTest: Testing how SelectedValue and SelectedValuePath work in SL4.
SL4Com: Justin Angel’s scary COM interop demo from the Silverlight 4 Beta age, updated to SL4 RTM. Some demos don’t work as Silverlight security has been tightened since.
SLBrowser: Basic demo of Silverlight 4’s OOB WebBrowser and WebBrowserBrush controls.
ValidationTest: Shows basic (very very basic!) usage of ExceptionValidation, IDataErrorInfoValidation and INotifyDataErrorInfoValidation.
WebcamTest: how to display your webcam’s picture in an Ellipse.
If you also want to have a “What’s new in Silverlight 4” session, I hope the above helped. You may also want to include other features that can easily be shown off without prepared solutions: for example the new Blend and Cider features, Blend’s PathListbox, the new Data pane, implicit styles, the new behaviors. Almost 30 demos were shown in our meeting, and it took three hours to go through them. This just shows how great an increment Silverlight 4 is!
You can download the ZIP file with the above solutions here. Enjoy!
Posted
May 25 2010, 12:43 AM
by
vbandi