~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/test-brush-linear.xaml

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="500" Height="500">
 
2
 
 
3
<Canvas Width="150" Height="150">
 
4
 
 
5
<Rectangle Width="100" Height="100">
 
6
  <Rectangle.Fill>
 
7
    <LinearGradientBrush StartPoint="1,1" EndPoint="0,0">
 
8
      <LinearGradientBrush.GradientStops>
 
9
        <GradientStop Color="Red" Offset="0" />
 
10
        <GradientStop Color="Green" Offset="0.5" />
 
11
        <GradientStop Color="Blue" Offset="1" />
 
12
      </LinearGradientBrush.GradientStops>
 
13
    </LinearGradientBrush>
 
14
  </Rectangle.Fill>
 
15
</Rectangle>
 
16
<Rectangle Width="100" Height="100" Canvas.Left="120">
 
17
  <Rectangle.Fill>
 
18
    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
 
19
      <LinearGradientBrush.GradientStops>
 
20
        <GradientStop Color="Red" Offset="0" />
 
21
        <GradientStop Color="Green" Offset="0.5" />
 
22
        <GradientStop Color="Blue" Offset="1" />
 
23
      </LinearGradientBrush.GradientStops>
 
24
    </LinearGradientBrush>
 
25
  </Rectangle.Fill>
 
26
</Rectangle>
 
27
<Rectangle Width="100" Height="100" Canvas.Top="120">
 
28
  <Rectangle.Fill>
 
29
    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
 
30
      <LinearGradientBrush.GradientStops>
 
31
        <GradientStop Color="Red" Offset="0" />
 
32
        <GradientStop Color="Green" Offset="0.5" />
 
33
        <GradientStop Color="Blue" Offset="1" />
 
34
      </LinearGradientBrush.GradientStops>
 
35
    </LinearGradientBrush>
 
36
  </Rectangle.Fill>
 
37
</Rectangle>
 
38
<Rectangle Width="100" Height="100" Canvas.Left="120" Canvas.Top="120">
 
39
  <Rectangle.Fill>
 
40
    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
 
41
      <LinearGradientBrush.GradientStops>
 
42
        <GradientStop Color="Red" Offset="0" />
 
43
        <GradientStop Color="Green" Offset="0.5" />
 
44
        <GradientStop Color="Blue" Offset="1" />
 
45
      </LinearGradientBrush.GradientStops>
 
46
    </LinearGradientBrush>
 
47
  </Rectangle.Fill>
 
48
</Rectangle>
 
49
<Canvas.Background>
 
50
    <LinearGradientBrush StartPoint="1,1" EndPoint="0,0">
 
51
      <LinearGradientBrush.GradientStops>
 
52
        <GradientStop Color="Red" Offset="0" />
 
53
        <GradientStop Color="Green" Offset="0.5" />
 
54
        <GradientStop Color="Blue" Offset="1" />
 
55
      </LinearGradientBrush.GradientStops>
 
56
    </LinearGradientBrush>
 
57
</Canvas.Background>
 
58
</Canvas>
 
59
</Canvas>