MULTIMEDIA

XAML in WPF

7/25/2010 5:03:56 PM
I_section1_d1e576.html

But didn't the previous section just mention that the WPF content is created using XML? Indeed, there is a special format (or XML dialect) for that purpose: XAML (eXtensible Application Markup Language). XAML is the UI markup used in WPF applications. The WPF runtime then interprets this markup, displays the UI, and also integrates the additional business logic code (which is, as aforementioned, written in a .NET language such as C# or VB).

Microsoft also provides several tools for developing XAML content. You can use Visual Studio, but for a more visual experience, Expression Blend (part of the Microsoft Expression Suite) is a better option. The .NET Framework 3.0 SDK also contains an application called XAMLPad that features a split view. You see both XAML markup and the actual WYSIWYG appearance of the code at the same time. Figure 1 shows XAMLPad in action.

Figure 1. XAMLPad shows both XAML and the visual output


Also, the API access to XAML offers more than XAML itself, so to get the most out of XAML, you need to familiarize yourself with both markup and code.

When creating Silverlight content, some basic WPF knowledge is beneficial as it helps you to better understand Silverlight concepts; however, WPF or .NET 3.0/3.5 is not required to view Silverlight content. Still, you should also familiarize yourself with XAML, because Silverlight also uses a subset of XAML to create the UI.

Other  
 
Most View
Lab Test: Satellite - SKY 2TB (Part 2)
Apricorn Velocity Solo X2 PCle SSD Adapter
Group Test: Free Office Suites (Part 2) - Zoho Docs, OxygenOffice Professional
The Archos 101 XS - Media magnetism
Shared photo streams
Running Windows 8 (part 1) - Running Windows 8 in Groups and Domains
The Terminator, Apple And Six Months Into Your Future
Silverlight : Data Binding - Validating Input for Bound Data
NET Debugging : Visual Studio (part 3) - Visual Studio 2010
Build Mobile Websites and Apps for Smart Devices : Style over Substance (part 2) - Rows
Top 10
Lenovo Idea Pad Flex 14
New Smartphone Range From Kazam
Nikon D3500 Digital SLR Camera (Part 2)
Nikon D5300 Digital SLR Camera (Part 1)
The Big Projector - BenQ W770ST
The Best Motherboards For $138 Or Less (Part 3) - LGA 1155 Motherboards
The Best Motherboards For $138 Or Less (Part 2) - LGA 1150 Motherboards
The Best Motherboards For $138 Or Less (Part 1)
The Excellent EVGA Card - PNY GTX 780 Ti XlR8
Lap Test – Asus Z87-Deluxe