The simplest features that allow you to lay your elements
out are something similar to what you saw in XHTML and CSS before: Width and
Any element that is derived from a FrameworkElement class
has these two attributes that allow you to set its size. Based on the
container of an element, these elements can work as how they seem to work or
can be cut to keep consistency (you will see some examples later). Listing 1
shows a simple TextBox in a Window with Width and Height attributes set for it
and you can see the output in Figure 1. Attend to the Window element itself,
it has its own Width and Height attributes.
Title="Layout in XAML" Height="150" Width="300"
<TextBox Width="200" Height="30">