Silverlight/XAML – Learning by Coding
1: <?xml version="1.0" encoding="UTF-8"?>
2: <!-- coded by Thomas Meinike 02/08 -->
3: <Canvas xmlns="http://schemas.microsoft.com/client/2007"
4: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
5:
6: <!-- roter Kreis mit Ellipse-Element -->
7: <Ellipse Canvas.Left="160" Canvas.Top="100" Width="80" Height="80" Fill="Red"/>
8:
9: <!-- gelber Kreis mit Path-Element und EllipseGeometry -->
10: <Path Fill="Yellow">
11: <Path.Data>
12: <EllipseGeometry Center="190,350" RadiusX="30" RadiusY="30"/>
13: </Path.Data>
14: </Path>
15:
16: <!-- grüner Kreis mit Path-Element -->
17: <Path Data="M100,200 A50,50 0 0,1 100,300 A50,50 0 0,1 100,200" Fill="Green"/>
18:
19: <!-- blauer Kreis mit Rectangle-Element -->
20: <Rectangle Canvas.Left="250" Canvas.Top="200" Width="120" Height="120"
21: RadiusX="60" RadiusY="60" Fill="Blue"/>
22:
23: </Canvas>
[zum Anfang]