What is XAML in WPF and why do we need it?


XAML is a XML file which represents your WPF UI. The whole point of creating the UI
representation in XML was write once and run it anywhere. So the same XAML UI can be
rendered as windows application with WPF and the same UI can be displayed on the browser
using WPF browser or Silverlight application.

XAML

XAML