What is the difference between silverlight 3 and 4




















Automated installations and upgrades for example, those performed by Microsoft Update and Windows Server Update Services do not use the Silverlight installer user interface and do not change your homepage or search engine. Version public API reported the Silverlight framework version as 5. With this fix, all CLR and Silverlight files now have a major and minor file version of 5.

Version reports 5. Incrementing the minor version number to 1 and restarting build numbering at would maintain the ability of subsequent Silverlight versions to update previous versions. Microsoft Silverlight 5 includes the following new features outlined in this document. Please note, these developer runtime downloads are for development purposes only and the user should disable updates immediately to avoid automatically updating to the most recent Silverlight version.

Silverlight 5 RC Build 5. This pre-release version of Microsoft Silverlight 5 includes the following new features:. In addition to what was release in the beta, some of the more exciting features included in this release are:.

Please see the List of New or Improved Features in Silverlight 5 for more details descriptions of the features introduced with Silverlight 5. Silverlight 5 Beta Build 5. Please see the Silverlight 5 Features Document for more details descriptions of the features introduced with Silverlight 5 Beta. Silverlight 4. Build 4. ErrrorsChanged event. ErrorsChanged event subscriptions. Note: A diacritic is a special mark added to a letter to indicate a different pronunciation, stress, tone, or meaning.

Acute and grave accents, tildes, and cedillas are examples of diacritics. This update relaxes this restriction. After you apply the update, an OOB application can enable an update if the following conditions are true:.

The current release of Bing Toolbar version 6 is not affected. Playback of PlayReady-protected content through a remote desktop connection or a terminal session is now disabled. There was no WSUS package released for this update. KeyDown event as expected.

This XAP file is then copied into the hosting application. It shows up under the ClientBin directory in the web project as shown in the following screenshot:. When renaming the SilverlightHotelBrowser. The following screenshot shows the contents of the ZIP file:. Data is not readily available to a Silverlight application on the client side. So we need to retrieve it from the server.

In Silverlight, this is done using services. Silverlight has many options to communicate with services. These are covered in the recipes of this book. We use the rich data binding features available in Silverlight to connect the data with the UI in this application.

Data binding allows us to bind properties of objects the data to properties of controls. In this particular example, we bind a list of Hotel instances to the ComboBox using the ItemsSource property. This grid contains the controls in which we want to show the details. Each of these controls uses a Binding markup extension in XAML to specify which property needs to be bounded. Data binding was used in this application. It's also the topic of Chapter 3 , where we delve deep into what data binding has to offer.

We also connected with a WCF service. Connecting and communicating with services is covered in Chapter 6 and Chapter 7. Expression Blend currently at version 4 is part of Microsoft's Expression Suite. It's a designer tool that allows designers to create compelling user experiences for use with WPF and Silverlight. While aimed at designers, it's a tool that should be in a Silverlight developer's toolbox as well.

In some areas, it offers a richer designer experience than Visual Studio does. One of the best examples of this is the timeline that makes it easy to create time-based animations. In this recipe, we'll look at how Visual Studio and Blend integrate. When used together, they help us create our applications faster. In the next chapter, we'll take another look at Blend—namely at its features that support data binding. After having read the Getting our environment ready to start developing Silverlight applications recipe, you should have Expression Blend 4 installed.

In this recipe, we are creating the sample from scratch. In this recipe, we'll recreate the Hotel Browser application. However, we'll do most of the work from Blend and switch back and forth to Visual Studio when it is recommended. We'll need to carry out the following steps:. Although we can start a new solution from Blend, we'll let Visual Studio create the solution for us.

The main reason is that we'll be using services later on in this sample and working with services is easier if the hosting site is an ASP. NET web application. Adding an ASP. Therefore, open Visual Studio and create a new Silverlight solution. In the context menu, select Open in Expression Blend Expression Blend will open up and its workspace will be shown. The following is a screenshot of the interface containing some named references:.

Gives an overview of the loaded solution and its projects. It is comparable to the Solution Explorer in Visual Studio. By default, this window gives an overview of all the XAML objects in the currently loaded document.

When we want to perform any action on an item such as giving it a background color , we select it in the Objects and Timeline window. This opens the properties window for that item.

Comparable to what we know from Visual Studio, the toolbox contains all the tools available. Since Blend is a design tool, tools such as a Pen, Paint Bucket, and so on are available in the toolbox. The Assets window contains all controls assets that we can drag onto the design surface such as Buttons, ComboBoxes, and so on. This is where all the action takes place! We can drag items from the Toolbox or the Assets window, rearrange them and so on to create a compelling user experience.

The Properties window allows us to change the properties of the selected item. We can change the color, layout properties, transform properties and so on. Now that we know our way around the designer, we can get creative. We'll start with MainPage. Instead of writing the XAML code for this, we'll do this in the designer. Click on the icon on the top left of the user control in the designer so that the Grid will be in the Grid layout mode. This can be seen in the following screenshot:.

Now, click on the left bar next to the user control to add a row. It's possible to change the height of the created row by dragging the handle. The following screenshot shows a row added to the Grid Select the ComboBox in the Assets window. Use the search function in this window to find it more quickly. On the designer, drag to create an instance of the ComboBox and place it on the top row that was just created. This can be seen in the next screenshot:. In the following screenshot, note that we are making use of the Search functionality within the Properties window.

Simply enter part of the name of the property you are looking for here displ and Blend will filter the available properties. With the ComboBox still selected in the Properties window, change to the Events view top arrow in the next screenshot. Let's now move back to the Design view of MainPage. Select the Grid item in the Toolbox. In the bottom cell of the LayoutRoot the main grid control drag to create a nested grid.

Create four rows and two columns using the same technique as before. Columns are created quite logically by clicking on the top bar of the control. The result is shown in the following screenshot:. In each of the cells, drag a TextBlock from the ToolBox. For the TextBlock controls in the first column, change the Text property as shown in the following screenshot.

Don't change the Text property of the controls in the second column; we'll look at these in the coming steps. Let's now change the background color of the LayoutRoot grid. To do this, select the LayoutRoot node in the Objects and Timeline window and in the Properties window, change the background by selecting a different color in the editor.

In Chapter 2 , we'll look at how we can make data binding in Blend easier. Save the Date! October 27th, Based on that, if you feel a WAP would be better Web Development Tools Microsoft October 29, This month we have an article from Andrew Dai on CLR Team November 10, Relevant Links. NET Download. NET Hello World. By default, the default. Click on a control name under the desired category and the right panel will display the control with different values assigned for its properties, creating diverse instances of the control.

For example, the following screenshot shows many instances of the Rating control under the Input category. Click on the buttons shown at the bottom of the web page and you will be able to see both the XAML and the C code used to create the sample for the control. You can also click on DataGridSample. This control appears under the Data category. Silverlight Toolkit also includes 11 themes that allow us to change and improve the overall look-and-feel for our Silverlight UI.

Click on Theme Browser under the Theming category and you will be able to select one of the themes shown in the previous list to preview the look-and-feel of many controls. The following screenshot shows the preview for the Whistler Blue theme:. So far, we have prepared the development environment. Now, it is time to make sure that we have the necessary configuration for the SharePoint server in which we are going to integrate Silverlight applications. In order to complete all the examples that we will develop throughout this book, you must be an administrator of a SharePoint site collection.

Follow these steps to ensure that you are a site collection administrator:. Open your default web browser, view the SharePoint site, and log in with your username and password. Click Site Actions Site Permissions and a list of users with their permission levels will appear. Now, click on Site Collection Administrators in the ribbon.

A new dialog box with the names of the users with administrator rights on this site collection will appear. If your user name appears in the text box, you are a Site Collection Administrator. If you cannot see the Site Collection Administrators button in the ribbon, it means that you don't have site collection administrator privileges on the site.

In this case, you have to request this permission from the SharePoint site administrator. Start Visual Studio as a system administrator user. In Windows Server R2, , and , if you are already logged as Administrator on the machine you can simply run the application. However, in Windows 7 or Windows Vista, you can do it by right-clicking on its shortcut and selecting Run as administrator in the context menu that appears, as shown:.

Activate the Server Explorer palette. If it isn't visible, you have to select View Server Explorer in the main menu. Click on the expand button for SharePoint Connections. If the name of your desired SharePoint server doesn't appear in the list, you can manually connect to the server. If your user has the previously explained privileges, the server will appear in the list.

Now, click on the expand button for the SharePoint server and you will be able to browse its different nodes. Every component of a SharePoint site is represented by a node in the Server Explorer tree view. You can inspect the properties for each node, as shown in the following screenshot:. You can view some lists in your default web browser by right-clicking on a node and then selecting View in Browser in the context menu that appears. For example, you can do it for the node Home Lists and Libraries Site Pages and your default web browser will display all the pages.

Remember to run Visual Studio as a system administrator user in order to interact with SharePoint for all the examples covered in this book. Now, we are going to create a very simple Silverlight LOB Line-Of-Business RIA that retrieves data, displays a grid with a list of projects, and allows the users to navigate through the data.

Use SilverlightProjects as the project's name. Deactivate the Host the Silverlight application in a new Web site checkbox in the New Silverlight Application dialog box. As you have installed Silverlight 4 Tools, the dialog box will offer you a combo box with the possibility to choose the desired Silverlight version. Select Silverlight 4 as we want to take advantage of the new features offered by this version.

Add a new XML file to the project, Projects. The following lines define properties and values for five project instances. Add a new class to the project called Project in a new class file, Project. The following lines define the new class, with six properties.

This way, you will be able to create instances of this class to hold the values defined in the previously created XML file. Open MainPage. Remember that Visual Studio allows us to drag-and-drop controls from the toolbox to the Silverlight UserControl in the design view and it will automatically generate the XAML code. One DataGrid control and set its name to dataGridProjects. Set its AutoGenerateColumns property to true. One Slider control, sliGridFontSize. Set its Minimum property to 8, Maximum to 72 , and Value to Apply data binding to the font size for the DataGrid control, dataGridProjects.

In order to do so, select dataGridProjects , activate the Properties panel, display them in alphabetical order, right-click on the FontSize property, and select Apply Data Binding in the context menu that appears. This way, when the user moves the slider, the font size for the data grid will change. The code that defines the data binding is as follows:.

Now, it is necessary to add code to retrieve data from the XML file and assign a value to the ItemsSource property of the DataGrid control. First, you have to add a reference to System. Build and run the solution. First, we added the XML file with the definitions for the five projects. Then, we added a class with the necessary properties to hold the values defined in this XML file. The InitializeGrid method loads the projects from the Projects.

Satheesh Kumar from Packt Publishing. We can click on one of the headers and the grid will sort the data in ascending order.

Then, we can click again to sort the data into descending order. When we drag the slider located at the bottom, the font size for the grid will change, as shown in the following screenshot:. As previously explained, we can also take advantage of the themes included in Silverlight's Toolkit to offer the user a more exciting UI. Add a reference to System. Remember that it is located in the aforementioned Bin sub-folder. Add a reference to the DLL for the desired theme in the Themes sub-folder.

For example, if you want to apply the ShinyBlue theme, add System. ShinyBlue , located in the aforementioned Themes sub-folder. Add the following line to include the namespace that defines the theme in the UserControl defined in MainPage. Add the following line before the definition of the main Grid, LayoutRoot:. Add the following line after the definition of the main Grid, LayoutRoot:.



0コメント

  • 1000 / 1000