Binary Application Markup Language (BAML).

binary representation of XAML. When you compile a WPF application in Visual Studio, all our XAML files are converted into BAML, and that BAML is then embedded as a resource into the final DLL or EXE assembly
in XAML we can do
Define controls
Wiring up event handlers.
Writing data binding expressions.
Defining resources.
Defining animations.
Defining control templates.
WPF Events

Lifetime events.
element initialized, loaded, or unloaded etc..

Mouse events.

Keyboard events.


Stylus events.
pen-like stylus, which takes the place of a mouse on a Tablet PC.

Multitouch events.
These events are one or more fingers touch on a multitouch screen.