Exploring the code-behind file


show more Exploring the code-behind file provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Exploring the code-behind file

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...

Exploring the code-behind file
Video duration: 5m 46s 8h 52m Beginner

Viewers:

Exploring the code-behind file provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...