<Window
x:Class="Layout.CanvasDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Canvas Demo">
<Canvas>
<Button>On Canvas: no position, no size</Button>
<Button Canvas.Left="25" Canvas.Top="25">On Canvas: left, top, no size</Button>
<Button Canvas.Right="25" Canvas.Bottom="25">On Canvas: right, bottom, no size</Button>
<Button Canvas.Left="100" Canvas.Top="100" Width="250" Height="50">On Canvas: left, top, size</Button>
</Canvas>
</Window>
|