Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Rectangle with Fill and Canvas position

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Rectangle Example">   <Canvas>       <Rectangle         Width="100"         Height="50"         Fill="#CCCCFF"         Canvas.Left="10"         Canvas.Top="25" />   </Canvas> </Page>