* MoonlightTypeConverter.cs: Convert CacheMode's from strings.
[moon.git] / test / xaml / test-videobrush.xaml
blobd17f84148ead8ebd45564cdd6d1f0f426e2b40ab
1 <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3         <MediaElement x:Name="ExampleVideo" Source="../media/video/timecode-short-wmv8.wmv"
4                       Opacity="0.0" IsHitTestVisible="False"/>
5         <Rectangle Width="100" Height="100" Stroke="blue">
6         <Rectangle.Fill>
7                 <VideoBrush SourceName="ExampleVideo" Stretch="None"/>
8         </Rectangle.Fill>
9         </Rectangle>
10         <Rectangle Width="100" Height="100" Canvas.Left="101" Stroke="blue">
11         <Rectangle.Fill>
12                 <VideoBrush SourceName="ExampleVideo" Stretch="Uniform"/>
13         </Rectangle.Fill>
14         </Rectangle>
15         <Rectangle Width="100" Height="100" Canvas.Left="202" Stroke="blue">
16         <Rectangle.Fill>
17                 <VideoBrush SourceName="ExampleVideo" Stretch="UniformToFill"/>
18         </Rectangle.Fill>
19         </Rectangle>
20         <Rectangle Width="100" Height="100" Canvas.Left="303" Stroke="blue">
21         <Rectangle.Fill>
22                 <VideoBrush SourceName="ExampleVideo" Stretch="Fill"/>
23         </Rectangle.Fill>
24         </Rectangle>
26         <Rectangle Width="100" Height="100" Canvas.Top="101" Stroke="blue">
27         <Rectangle.Fill>
28                 <VideoBrush SourceName="ExampleVideo" Stretch="None" AlignmentX="Left"/>
29         </Rectangle.Fill>
30         </Rectangle>
31         <Rectangle Width="100" Height="100" Canvas.Top="101" Canvas.Left="101" Stroke="blue">
32         <Rectangle.Fill>
33                 <VideoBrush SourceName="ExampleVideo" Stretch="Uniform" AlignmentX="Left"/>
34         </Rectangle.Fill>
35         </Rectangle>
36         <Rectangle Width="100" Height="100" Canvas.Top="101" Canvas.Left="202" Stroke="blue">
37         <Rectangle.Fill>
38                 <VideoBrush SourceName="ExampleVideo" Stretch="UniformToFill" AlignmentX="Left"/>
39         </Rectangle.Fill>
40         </Rectangle>
41         <Rectangle Width="100" Height="100" Canvas.Top="101" Canvas.Left="303" Stroke="blue">
42         <Rectangle.Fill>
43                 <VideoBrush SourceName="ExampleVideo" Stretch="Fill" AlignmentX="Left"/>
44         </Rectangle.Fill>
45         </Rectangle>
47         <Rectangle Width="100" Height="100" Canvas.Top="202" Stroke="blue">
48         <Rectangle.Fill>
49                 <VideoBrush SourceName="ExampleVideo" Stretch="None" AlignmentX="Right"/>
50         </Rectangle.Fill>
51         </Rectangle>
52         <Rectangle Width="100" Height="100" Canvas.Top="202" Canvas.Left="101" Stroke="blue">
53         <Rectangle.Fill>
54                 <VideoBrush SourceName="ExampleVideo" Stretch="Uniform" AlignmentX="Right"/>
55         </Rectangle.Fill>
56         </Rectangle>
57         <Rectangle Width="100" Height="100" Canvas.Top="202" Canvas.Left="202" Stroke="blue">
58         <Rectangle.Fill>
59                 <VideoBrush SourceName="ExampleVideo" Stretch="UniformToFill" AlignmentX="Right"/>
60         </Rectangle.Fill>
61         </Rectangle>
62         <Rectangle Width="100" Height="100" Canvas.Top="202" Canvas.Left="303" Stroke="blue">
63         <Rectangle.Fill>
64                 <VideoBrush SourceName="ExampleVideo" Stretch="Fill" AlignmentX="Right"/>
65         </Rectangle.Fill>
66         </Rectangle>
68         <Rectangle Width="100" Height="100" Canvas.Top="303" Stroke="blue">
69         <Rectangle.Fill>
70                 <VideoBrush SourceName="ExampleVideo" Stretch="None" AlignmentY="Top"/>
71         </Rectangle.Fill>
72         </Rectangle>
73         <Rectangle Width="100" Height="100" Canvas.Top="303" Canvas.Left="101" Stroke="blue">
74         <Rectangle.Fill>
75                 <VideoBrush SourceName="ExampleVideo" Stretch="Uniform" AlignmentY="Top"/>
76         </Rectangle.Fill>
77         </Rectangle>
78         <Rectangle Width="100" Height="100" Canvas.Top="303" Canvas.Left="202" Stroke="blue">
79         <Rectangle.Fill>
80                 <VideoBrush SourceName="ExampleVideo" Stretch="UniformToFill" AlignmentY="Top"/>
81         </Rectangle.Fill>
82         </Rectangle>
83         <Rectangle Width="100" Height="100" Canvas.Top="303" Canvas.Left="303" Stroke="blue">
84         <Rectangle.Fill>
85                 <VideoBrush SourceName="ExampleVideo" Stretch="Fill" AlignmentY="Top"/>
86         </Rectangle.Fill>
87         </Rectangle>
89         <Rectangle Width="100" Height="100" Canvas.Top="404" Stroke="blue">
90         <Rectangle.Fill>
91                 <VideoBrush SourceName="ExampleVideo" Stretch="None" AlignmentY="Bottom"/>
92         </Rectangle.Fill>
93         </Rectangle>
94         <Rectangle Width="100" Height="100" Canvas.Top="404" Canvas.Left="101" Stroke="blue">
95         <Rectangle.Fill>
96                 <VideoBrush SourceName="ExampleVideo" Stretch="Uniform" AlignmentY="Bottom"/>
97         </Rectangle.Fill>
98         </Rectangle>
99         <Rectangle Width="100" Height="100" Canvas.Top="404" Canvas.Left="202" Stroke="blue">
100         <Rectangle.Fill>
101                 <VideoBrush SourceName="ExampleVideo" Stretch="UniformToFill" AlignmentY="Bottom"/>
102         </Rectangle.Fill>
103         </Rectangle>
104         <Rectangle Width="100" Height="100" Canvas.Top="404" Canvas.Left="303" Stroke="blue">
105         <Rectangle.Fill>
106                 <VideoBrush SourceName="ExampleVideo" Stretch="Fill" AlignmentY="Bottom"/>
107         </Rectangle.Fill>
108         </Rectangle>
109 </Canvas>