Join Walt Ritscher for an in-depth discussion in this video Exploring the code-behind file, part of Silverlight 5 Essential Training.
In Visual Studio and Expression Blend whenever you create a XAML file, you'll…also get a code behind file.…What does it mean, when I say code behind?…If you recall, XAML is really XML text, primarily used to specify the visual…object tree for your control.…The Visual Studio and Expression Blend designer tools write XML bits into this text file.…Whenever you add non-markup code, let's say you're writing a button-click…function in C#, that code must go in a separate C# specific file.…The code behind file is the default location for this affiliated code, you can…store the code elsewhere but that requires extra work on your behalf.…
Visual Studio and Expression Blend add these files automatically whenever you…create a new XAML file.…In Silverlight each bit of code that you write is placed inside a code wrapper.…This wrapper is known as a Type. The most common types using .NET are the Class…type and the Struct type.…If you are new to .NET be sure and watch the C# Essential Training to see how….NET handles the type system.…
Author
Released
3/27/2012- Installing the toolkit and setting up the development environment
- Using Expression Blend vs. Visual Studio 2010
- Creating a Silverlight page
- Compiling an application
- Exploring the relationship between XAML and .NET
- Using C#
- Working with XAML
- Digging into the Dependency Property System
- Deploying and debugging code
- Creating sophisticated layouts with panel elements
- Managing Visual State with Visual State Manager
- Transforming the user interface (UI) with templates
- Understanding the event model
- Working with text
- Using business data in a binding
- Creating an out-of-browser (OOB) application
- Exploring trust levels
- Playing audio and video
- Handling errors
- Exploring animations
- Working with application windows
- Integration with XNA
Skill Level Beginner
Duration
Views
Q: I'm trying to access a Silverlight 3D application template, [cid:image001.png@01CD0E7D.3E07ECA0]. I have already installed the Silverlight 5 SDK and my Visual Studio 2010 is professional. Could you please help me?
A: You must install XNA Studio in order to use the new Silverlight 3D templates. Otherwise the new templates will not show up. Download it at http://www.microsoft.com/download/en/details.aspx?id=23714.
For other Silverlight downloads (the toolkit, developer runtime, etc.), see http://www.silverlight.net/downloads.
Related Courses
-
Visual Studio 2010 Essential Training
with Walt Ritscher8h 8m Intermediate -
ASP.NET Essential Training
with David Gassner6h 24m Beginner
-
Introduction
-
Welcome53s
-
-
1. Getting Started
-
Overview of Silverlight3m 29s
-
-
2. Project Overview
-
Creating a Silverlight page3m 17s
-
3. The Programming Side
-
Using C#7m 16s
-
4. XAML
-
5. Troubleshooting and Debugging Your Code
-
Debugging your code5m 17s
-
-
6. Layout Containers
-
Understanding layout4m 55s
-
Using the TabControl2m 17s
-
-
7. Painting the User Interface with Brushes
-
8. Understanding the Event Model
-
Understanding routed events3m 12s
-
Understanding event bubbling4m 39s
-
Exploring mouse events7m 43s
-
-
9. Working with Text
-
10. Using Silverlight Controls
-
Using the BusyIndicator4m 40s
-
Showing tooltips4m 34s
-
Exploring more controls4m 31s
-
11. Working with Data
-
Digging into the DataGrid8m 28s
-
Using the DataForm3m 49s
-
Storing data on the client7m 10s
-
Debugging XAML bindings5m 41s
-
Charting data4m 34s
-
12. Running a Silverlight Application Out of Browser (OOB)
-
13. Harnessing More Power with Elevated Trust Applications
-
14. Windows
-
Showing child windows3m 48s
-
Creating native windows2m 53s
-
-
15. Navigation
-
16. Images
-
Using resource files3m 53s
-
-
17. Media
-
Playing audio4m 27s
-
Playing sound effects5m 4s
-
-
18. Working with Peripherals
-
Working with a microphone3m 47s
-
Creating print output6m 37s
-
19. Energizing the UI with Animations
-
Creating animations7m 52s
-
Controlling animations4m 18s
-
20. Templates and Styles
-
21. Application-Level Concepts
-
22. Exploring More Silverlight 5 Features
-
Integrating with XNA7m 40s
-
-
Conclusion
-
Goodbye1m 6s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Exploring the code-behind file