Quickstart3
This sample shows you how to construct a complex eXtensible Application Markup Language (XAML) layout by nesting textblock, button, and dockpanels within a parent dockpanel.
This example demonstrates any embedded control in the control, as shown below:
The XAML documentation is as follows: < Page
Xmlns = " Http://schemas.microsoft.com/winfx/2006/xaml/presentation "
Xmlns: x = " Http://schemas.microsoft.com/winfx/2006/xaml " >
< Dockpanel
Xmlns = " Http://schemas.microsoft.com/winfx/2006/xaml/presentation "
Xmlns: x = " Http://schemas.microsoft.com/winfx/2006/xaml " >
< Textblock background = " Lightblue "
Dockpanel. Dock = " Top " > Some text </ Textblock >
< Textblock dockpanel. Dock = " Bottom "
Background = " Lightyellow " > Some text at the bottom of the page. </ Textblock >
< Textblock dockpanel. Dock = " Left "
Background = " Lavender " > Some more text </ Textblock >
< Dockpanel background = " Bisque " >
< Stackpanel dockpanel. Dock = " Top " >
< Button horizontalalignment = " Left "
Height = " 30px "
Width = " 100px "
Margin = " 10, 10, 10 " > Button1 </ Button >
< Button horizontalalignment = " Left "
Height = " 30px "
Width = " 100px "
Margin = " 10, 10, 10 " > Button2 </ Button >
</ Stackpanel >
< Textblock background = " Lightgreen " > Some text below the buttons </ Textblock >
</ Dockpanel >
</ Dockpanel >
</ Page >