Wednesday 14 July 2010

All about XAML

UI VERSUS LOGIC

XAML is a markup language -> separate UI and logic. Have a .xaml extension. Typically files are encoded as UTF-8 (8-bit Unicode Transformation Format). Example of creating a button:

<StackPanel>
<Button Content="Click Me"/>
</StackPanel>

A StackPanel allows you to stack elements in a specified direction. With a StackPanel, content can flow vertically (the default) or horizontally.

No comments: