2011年8月15日

Using the Modal Child WIndow in SL 4.0

摘要: In this exercise, you will create a simple registration form that accepts a first and last name. When someone presses the button to register, a modal window will appear with a terms and conditions notice that users must agree to before proceeding. You won't fully code the registration form, you& 阅读全文

posted @ 2011-08-15 16:41 cjerych 阅读(335) 评论(0) 推荐(0) 编辑

Working with the Accordion Control in Silverlight 4.0

摘要: In this example we will use the Accordion control to display a list of books, grouped by category.1. Create a new SL application in VS 2010 called AccordionControl. Allow VS to create a web applition project to host the application.2. With the MainPage.Xaml file selected, position the cursor in the 阅读全文

posted @ 2011-08-15 15:50 cjerych 阅读(413) 评论(0) 推荐(0) 编辑

Building a ListBox with custom content in Silverlight 4.0

摘要: Let's take the same data that displayed poker starting hands from the previous exercise and see what type of cool Listbox you can build with it.1. Start out by creating a new Silverlight applicatoin called ListBoxCustom and allow VS to create a hosting web site.2. You will use the same class tha 阅读全文

posted @ 2011-08-15 15:09 cjerych 阅读(365) 评论(0) 推荐(0) 编辑

Building a DataGrid with Custom Columns in Silverlight 4.0

摘要: I thought it would be fun to build a DataGrid tha contains a list of starting hads in poker. If you have ever watched poker on TV, you most likely heard the players refer to things like "pocket rockets" and "cowboys". These are smply nicknames they have given to starting hands.1. 阅读全文

posted @ 2011-08-15 14:10 cjerych 阅读(220) 评论(0) 推荐(0) 编辑

Building a Simple DataGrid in Silverlight 4.0

摘要: Let's run through a simple DataGrid example.1. create a new silverlight applicaiton in VS 2010. Name the project SimpledataGrid, and have VS create a web application porject for you.2. Add the DataGrid to your application. To do this, simply add the DataGrid to the root Grid in your XAML, and se 阅读全文

posted @ 2011-08-15 13:23 cjerych 阅读(306) 评论(0) 推荐(0) 编辑

Element to Element Binding

摘要: To help explain element to element binding in Silverlight, let's build a very simple application. The application will include a buttona a checkbox. When the checkbox is checked, the button is enabled, when the checkbox is unchecked. the button is disabled. Let's get started.1. Create a silv 阅读全文

posted @ 2011-08-15 11:43 cjerych 阅读(222) 评论(0) 推荐(0) 编辑

Simple Data Binding in Silverlight 4.0

摘要: To help explain data binding in Silverlight, let's build a very simple application. The application will include a Book object that contains two properties: Title and ISBN. These properties will be bound to two Text Controls. Results as following:1. Create a new Silverlight application in Visual 阅读全文

posted @ 2011-08-15 11:31 cjerych 阅读(310) 评论(0) 推荐(0) 编辑

Data Binding in Silverlight 4.0

摘要: Data Binding in SilverlightData binding in Silverlight is accomplished by using the Binding class. The Binding class has two components--the source and the target--and a property that defines the way the two are bound, called the binding mode. The source is the data that is to be bound, the target i 阅读全文

posted @ 2011-08-15 09:51 cjerych 阅读(215) 评论(0) 推荐(0) 编辑

导航