XAML code to create a human face

Abhisek
Posted by Abhisek under WPF category on | Views : 2271

<Grid>
<Canvas Margin="91.685,18.337,101.687,210.042" Name="FaceCanvas" Background="AliceBlue" ToolTip="A Simple Face Created In WPF">
<Canvas.BitmapEffect>
<DropShadowBitmapEffect Color="CadetBlue" Direction="400" />
</Canvas.BitmapEffect>
<Ellipse Canvas.Left="18.337" Canvas.Top="16.67" Height="225.045" Name="ellipse1" Stroke="Black" Width="238.381" Fill="Bisque" />
<Ellipse Canvas.Left="38" Canvas.Top="67" Height="26" Name="ellipse2" Stroke="Black" Width="67" Fill="Azure" />
<Ellipse Canvas.Left="158" Canvas.Top="67" Height="26" Name="ellipse3" Stroke="Black" Width="67" Fill="Azure" />
<Ellipse Canvas.Left="63" Canvas.Top="80" Height="13" Name="ellipse4" Stroke="Black" Width="13" Fill="Black" />
<Ellipse Canvas.Left="186" Canvas.Top="80" Height="13" Name="ellipse5" Stroke="Black" Width="13" Fill="Black" />
<Rectangle Canvas.Left="81" Canvas.Top="176" Height="12" Name="rectangle1" Stroke="Black" Width="110" Fill="Tomato" />
<Ellipse Name="ellipse6" Stroke="Black" Width="15" Height="60" Canvas.Left="126" Canvas.Top="103" Fill="BurlyWood" />
<Canvas.LayoutTransform>
<RotateTransform Angle="-20"/>
</Canvas.LayoutTransform>
</Canvas>
</Grid>

Comments or Responses

Login to post response