Silverlight/XAML – Learning by Coding

[ solid_color_brush.xaml --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="UTF-8"?>
 2: <!-- coded by Thomas Meinike 01/08 -->
 3: <Canvas xmlns="http://schemas.microsoft.com/client/2007"
 4:         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 5: 
 6:   <Rectangle Canvas.Left="50" Canvas.Top="50" Width="100" Height="100">
 7:     <Rectangle.Fill>
 8:       <SolidColorBrush Color="#3CF"/>
 9:       <!-- sonstige Füllungen:
10:            <ImageBrush ... />
11:            <LinearGradientBrush ... />
12:            <RadialGradientBrush ... />
13:            <VideoBrush ... />
14:        -->
15:     </Rectangle.Fill>
16:   </Rectangle17: 
18:   <!-- Alternative für feste Farbwerte: -->
19:   <Rectangle Canvas.Left="150" Canvas.Top="150" Width="100" Height="100" Fill="#FC3"/>
20: 
21: </Canvas>

[zum Anfang]