I said each XAML element represents a .NET CLR class. Most
XAML elements are inherited from System.Windows.UIElement,
System.Windows.FrameworkElement, System.Windows.FrameworkContentElement and
System.Windows.ContentElement. There are not any XAML elements that correspond
to abstract classes in .NET CLR, but there are tons of XAML elements that are
corresponded to classes that are inherited from these abstract classes.
We have four general kinds of XAML elements.
·
Root elements: Windows and Page elements are the most common root
elements that you will use. These elements sit as the root element for your
XAML files and contain other elements.
·
Panel elements: These elements help you to lay out your user
interface. Common panel elements are StackPanel, DockPanel, Grid and Canvas.
·
Control elements: These elements define several types of controls
in XAML and let you put a control on your UI and customize it.
·
Geometric elements: This kind of elements helps you to draw
shapes and geometric graphics on your UI. There are many Geometric elements
such as LineGeometry, EllipseGeometry, PathGeometry and LineSegment.
·
Document elements: These elements are helpful when you want to
deal with presentation of a document. Inline and Block elements are two major
groups of these elements that help out to make your desired look for a
document. Some famous Inline elements are Bold, LineBreak and Italic and some
famous Block elements are Paragraph, List, Block, Figure and Table. Compare
these elements with some HTML elements such as <p>, <table> and
<i>.