DCSIMG
C#,DEV,SDP,Silverlight 4 - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » C# » DEV » SDP » Silverlight 4 (RSS)

Silverlight 4: New features overview (Part 5) – DataBinding improvements

Silverlight 4 introduces improvements in DataBinding. between the improvements are IDataErrorInfo support, ability to bind to DataObjects, StringFormat, TargetNullValue, FallbackValue support and many others. This post will show how to use StringFormat, TargetNullValue and FallbackValue while databinding. For show the new features I’ve created sample application –> it will display values bounded to number of DependencyProperties defined in code behind. In code behind I’ve created number of Dependency...

Silverlight 4 Quick Tip: Styling application

Silverlight 4 supports default styles. Default styles are styles with TargetType, but without x:Key property set. Those styles will be applied to all controls from corresponding type. The sample of default (also sometime called anonymous) style: < Style TargetType ="Button"> < Setter Property ="Margin" Value ="5"/> < Setter Property ="Width" Value ="100"/> < Setter Property ="Height" Value ="25"/> < Setter...

Silverlight 4: New features overview (Part 4) – Out-of-browser applications: even more features

In addition to previous features, Silverlight 4 adds some more nice improvements to Out-of-Browser model. Now it allows to control Top/Left position of the out-of-browser window, bring it to the foreground (if not active), check if the window is topmost and define it’s Width/Height. All those features being exposed by MainWindow object of Application: Additional feature is Notification Window. It is a notification area that is displayed in the system area, at the bottom right part of the screen....

Silverlight 4: New features overview (Part 3) – Elevated Out-of-browser applications

Silverlight 4 enhances the out-of-browser feature introduced in previous version of the technology. Silverlight 3 added a feature to use application in Out-of-browser mode – install application shortcut to desktop or start menu, and launch it within application launcher (instead of the browser). Along with it, the application still was sandboxed application, with the same set of restrictions, like in browser. Silverlight 4 extends this feature and allows to relax some of the sandbox restrictions...

Silverlight 4: New features overview (Part 2) – Printing Support

In previous part (here) I’ve created sample application which uses Webcam and captures the image. In this post I’ll show how to print received image (and any part of the UI) to a printer. In Silverlight 4 we got new class, called PrintDocument which is a part of “System.Windows.Printing” namespace. This class provides a number of events, which helps to control the printing job: StartPrint – occurs right after printer selection dialog successfully returns, prior the first page print PrintPage – occurs...

Silverlight 4: New features overview (Part 1) – Webcam/Mic Support

This post starts a series of post about new features in Silverlight 4 Beta released at PDC 09. Today I’ll show how to use Webcam/Mic support feature in the new version. In order to use the Webcam/Mic the user should has valid drivers installed. To see which from installed drivers could be used open Silverlight Configuration and select 4th tab: This tab also allows to select default webcam/mic to use with Silverlight applications. Webcam/Mic controlled by CaptureSource class. This class allows to...

Silverlight Tip: Enumerating embedded resources

Today I’ve got a “Call for Help” from one of Silverlight MVPs – Bill Reiss . The mail said: “I would like to enumerate all items that were marked as Content or Resource in the main XAP file. If I can’t do both I’d settle for one. Any sample code for this would be greatly appreciated. Bill”   I decided to help with embedded resources, because I did something like this in WPF. I’ve created sample application, which will display a list of resources in list box – from here it is very easy to use...