<Window x:Class="WpfApplication1.ShapesWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="ShapesWindow" Height="160" Width="400"> <Canvas> <Rectangle Fill="Blue" Canvas.Left="40" Canvas.Top="40" Width="40" /> <Ellipse Fill="Green" Stroke="Black" StrokeThickness="2" Canvas.Left = "60" Canvas.Top="120" Width="40" Height="40" /> </Canvas> </Window>