Create Canvas controls that contain other controls and even nest them in other Canvas or Grid controls.
<UserControl x:Class='SilverlightApplication3.MainPage'
xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
xmlns:d='http://schemas.microsoft.com/expression/blend/2008'
xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006'
mc:Ignorable='d'
d:DesignWidth='640'
d:DesignHeight='480'>
<Canvas x:Name="LayoutRoot"
Background="White">
<Canvas Height="50" Width="400"
Background="Black">
<TextBlock Text="My Log"
Foreground="White"
Canvas.Left="20"
FontSize="24" />
</Canvas>
<Canvas Canvas.Top="50"
Height="250" Width="400"
Background="#eeeeee">
<TextBlock Text="Add an Entry"
Canvas.Top="30" Canvas.Left="50"/>
<TextBox Text="Add an Entry"
Height="100" Width="200"
Canvas.Top="70" Canvas.Left="100"/>
<Button Content="Enter"
Height="30" Width="80"
Canvas.Top="200" Canvas.Left="150"/>
</Canvas>
</Canvas>
</UserControl>
Related examples in the same category