Position UI Elements Using Exact Coordinates
<Window x:Class="Main" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WPF" Height="300" Width="300"> <Canvas Background="LightGray" Margin="1cm"> <Button Content="Button _1" Canvas.Top="-1cm" Canvas.Left="1cm" /> <Button Content="Button _2" Canvas.Bottom="1cm" Canvas.Left="1cm" Canvas.ZIndex="1"/> <Button Content="Button _3" Canvas.Top="1cm" Canvas.Right="1cm" /> <Button Content="Button _4" Canvas.Bottom="1.2cm" Canvas.Left="1.5cm" /> <Button Content="Button _5" Canvas.Bottom="1cm" Canvas.Right="-1cm" /> </Canvas> </Window>