|
||||||||||||||||||||
|
Web Silverlight-enabled WCF Service Reference Support The list of components in Silverlight Tools probably should have referred to including "Service Reference Support" instead of "Web Reference Support" since the Add Web Reference option is not shown as available to Silverlight Applications as can be seen in the following screenshot.
The absence of the Add Web Reference option occasionally confuses developers until they are advised to simply choose the Add Service Reference option instead, as this excellent summary illustrates how to call a Web Service from a Silverlight application. Team Build and Command Line Support Silverlight developers can also use MSBuild to automate build tasks, as for example the creation of .xap packages. Dave Miles has prepared a good tutorial explaining how to use MSBuild with Silverlight content. While most developers compile their applications (locally) by pressing either F5 or Ctrl-Shift-B, the .NET SDK includes a command line compiler, csc.exe. Silverlight Tools makes the necessary changes so that the command line compiler can also create a Silverlight .xap file. Integration with Expression Blend Fortunately, both tools use an identical project structure and are capable of opening either .sln or .proj files. Silverlight Tools adds an extra entry to the right click context menu for .xaml files in the Visual Studio Solution Explorer which offers the option to "Open in Expression Blend". This menu entry will only be displayed if Visual Studio is able to detect the presence of Expression Blend.
Silverlight Tools also adds a corresponding entry in the Expression Blend right click context menu which makes switching in the opposite direction equally easy. Silverlight Developer Runtime There are both Mac and Windows versions of the Silverlight Developer Runtime. Both provide additional debug and error information. In both cases, the Developer Runtime must be installed on a client machine in order to do remote debugging. See the previously mentioned Peter Laudati blog article for an explanation of how to do this on a Mac. Silverlight 2 SDK
Documentation for Silverlight takes two forms: documentation which can be incorporated into the Visual Studio built-in help files and stand alone documentation (Silverlight.chm). Obviously there is a significant advantage for Silverlight help to be available on an immediate basis simply by pressing the F1 key with the item in question selected. Unfortunately, while in most cases this integrated help will be successfully incorporated into the existing Visual Studio help files when the Silverlight Tools package is installed, this will not always occur due to different release/beta and install/uninstall combinations or because of localization mismatches. You can determine if you've achieved this integration by opening the Collection Manager in Visual Studio's built-in help. If the Microsoft Silverlight 2 SDK Documentation entry is checked, integrated Silverlight help should be available. If it is not, check it and click on the Update VSCC button.
Silverlight help is also available in the standalone .chm file found in the SDK - Documentation - Help folder or as a separate download, independent of the SDK. This help is particularly useful for any designer or developer working exclusively in Expression Blend since there is currently no Silverlight help directly accessible from Expression Blend. Also, since Visual Studio does not currently permit filtering the integrated help files to include only Silverlight relevant content, you can achieve this result only by using the standalone help file. The SDK also contains a "Breaking Changes" document which explains what changes in the RTW version of Silverlight 2 will cause Beta 2 Silverlight applications to no longer work. The libraries included with the Silverlight SDK are divided into Client libraries and Server libraries. The Server libraries include two ASP.NET controls for Silverlight, asp:Silverlight and asp:MediaPlayer. Both are designed to allow developers to use the ASP.NET server control model to host Silverlight content. The media player control is designed to incorporate audio (WMA) and/or video (WMV) into a Silverlight application. The generic Silverlight Server Control is designed to host any generic XAML content. When a developer chooses to use an ASP.NET Web Application, the included .aspx page uses the asp:Silverlight control to host the XAML content provided by the Silverlight Application (See Figure 2). The Client libraries installed by the SDK are shown in the following screenshot:
Notable assemblies in this list include System.Windows.Controls which contains the supplemental controls that are not included in the core Silverlight assemblies used by the browser plugin. These controls are the Calendar, DatePicker, GridSplitter and TabControl as shown in the following screenshot. Another key assembly is System.Windows.Controls.Data which contains the new Microsoft DataGrid.
Other key assemblies include System.Xml.Linq which contains the LINQ to XML libraries and System.Xml.Serialization which contains the XML serialization libraries. The principal development tool included in the Silverlight 2 SDK is the code generation library (Microsoft.Silverlight.ServiceReference.dll) which is use to create Silverlight compliant WCF Service client proxies. Summary Links * This article was commissioned by and prepared for Microsoft Corporation. This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
|
||||||||||||||||||||
|
Cal Schrotenboer is a C# developer with experience in building Windows Forms
application front ends for SQL Server databases. He also teaches programming classes at Foothill College in Los Altos Hills, California and Microsoft Network Administration (MCSE) classes at Mission College in Santa Clara. Cal maintains a WPF blog at www.WPFLearningExperience.com. His outside interests include travel
and photography (www.travelswithcal.com).
| ||||||||||||||||||||
|
||||||||||||||||||||
|
|