XAML is an XML-based markup language for specifying and setting the characteristics of classes. Most WPF programs use both C# and XAML.
- XAML is used mainly for specifying static and visual aspects of the UI by setting properties of class objects.
− Most XAML is produced by UI layout tools such as Expression Blend, rather
than being coded by hand.
− UI layout tools such as Expression Blend are often used by graphic designers
rather than programmers.
- C# is used mainly for specifying most of the active parts of a program such as the flow of control and message handlers.
For example, you might use XAML to place a button on a window and to set all its visual
characteristics. But you would use C# to write the message handler that’s called when the button is clicked.