2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / test / xaml / test-inkpresenter-drawingattributes.xaml
blobc81652ab44f51cc331ba664b3ec7cce1e01cdf5e
1 <Canvas xmlns="http://schemas.microsoft.com/client/2007" Width="400" Height="400" Background="Black">
2         <InkPresenter Width="400" Height="400" Background="White">
3         <InkPresenter.Strokes>
4                 <StrokeCollection>
6 <!-- no drawing attributes == small black point -->
7                         <Stroke>
8                         <Stroke.StylusPoints>
9                                 <StylusPointCollection>
10                                         <StylusPoint X="20" Y="20" />
11                                 </StylusPointCollection>
12                         </Stroke.StylusPoints>
13                         </Stroke>
15 <!-- drawing attributes (transparent colors) == no point -->
16                         <Stroke>
17                         <Stroke.DrawingAttributes>
18                                 <DrawingAttributes Color="#00000000" OutlineColor="#00000000" Height="1" Width="1"/>
19                         </Stroke.DrawingAttributes>
20                         <Stroke.StylusPoints>
21                                 <StylusPointCollection>
22                                         <StylusPoint X="40" Y="20" />
23                                 </StylusPointCollection>
24                         </Stroke.StylusPoints>
25                         </Stroke>
27 <!-- drawing attributes (black with transparent outline) == very small grey point -->
28                         <Stroke>
29                         <Stroke.DrawingAttributes>
30                                 <DrawingAttributes Color="#FF000000" OutlineColor="#00000000" Height="1" Width="1"/>
31                         </Stroke.DrawingAttributes>
32                         <Stroke.StylusPoints>
33                                 <StylusPointCollection>
34                                         <StylusPoint X="60" Y="20" />
35                                 </StylusPointCollection>
36                         </Stroke.StylusPoints>
37                         </Stroke>
39 <!-- drawing attributes (transparent with black outline) == quite big black point -->
40                         <Stroke>
41                         <Stroke.DrawingAttributes>
42                                 <DrawingAttributes Color="#00000000" OutlineColor="#FF000000" Height="1" Width="1"/>
43                         </Stroke.DrawingAttributes>
44                         <Stroke.StylusPoints>
45                                 <StylusPointCollection>
46                                         <StylusPoint X="80" Y="20" />
47                                 </StylusPointCollection>
48                         </Stroke.StylusPoints>
49                         </Stroke>
51 <!-- drawing attributes (transparent with black outline) == identical to above (quite big black point) -->
52                         <Stroke>
53                         <Stroke.DrawingAttributes>
54                                 <DrawingAttributes Color="#FF000000" OutlineColor="#FF000000" Height="1" Width="1"/>
55                         </Stroke.DrawingAttributes>
56                         <Stroke.StylusPoints>
57                                 <StylusPointCollection>
58                                         <StylusPoint X="100" Y="20" />
59                                 </StylusPointCollection>
60                         </Stroke.StylusPoints>
61                         </Stroke>
63 <!-- drawing attributes (black with transparent outline) == invisible -->
64                         <Stroke>
65                         <Stroke.DrawingAttributes>
66                                 <DrawingAttributes Color="#FF000000" OutlineColor="#00000000" Height="0" Width="0"/>
67                         </Stroke.DrawingAttributes>
68                         <Stroke.StylusPoints>
69                                 <StylusPointCollection>
70                                         <StylusPoint X="120" Y="20" />
71                                 </StylusPointCollection>
72                         </Stroke.StylusPoints>
73                         </Stroke>
75 <!-- drawing attributes (transparent with black outline) == small black point (but bigger than no drawing attributes) -->
76                         <Stroke>
77                         <Stroke.DrawingAttributes>
78                                 <DrawingAttributes Color="#00000000" OutlineColor="#FF000000" Height="0" Width="0"/>
79                         </Stroke.DrawingAttributes>
80                         <Stroke.StylusPoints>
81                                 <StylusPointCollection>
82                                         <StylusPoint X="140" Y="20" />
83                                 </StylusPointCollection>
84                         </Stroke.StylusPoints>
85                         </Stroke>
87 <!-- drawing attributes (transparent with black outline) == identical to above (quite big black point) -->
88                         <Stroke>
89                         <Stroke.DrawingAttributes>
90                                 <DrawingAttributes Color="#FF000000" OutlineColor="#FF000000" Height="0" Width="0"/>
91                         </Stroke.DrawingAttributes>
92                         <Stroke.StylusPoints>
93                                 <StylusPointCollection>
94                                         <StylusPoint X="160" Y="20" />
95                                 </StylusPointCollection>
96                         </Stroke.StylusPoints>
97                         </Stroke>
98                 </StrokeCollection>
99         </InkPresenter.Strokes>
101 <!-- cloned points using round rectangles -->
103         <Rectangle Fill="#FF000000" Canvas.Left="18.5" Canvas.Top="29.5" Height="3" Width="3" RadiusX="1.5" RadiusY="1.5" />
105         <Rectangle Fill="#FFcccccc" Canvas.Left="59" Canvas.Top="30" Height="2" Width="2" RadiusX="1" RadiusY="1" />
106         <Rectangle Fill="#FF000000" Stroke="#FF000000" Canvas.Left="77.5" Canvas.Top="29.5" Height="5" Width="5" RadiusX="2.5" RadiusY="2.5" />
107         <Rectangle Fill="#FF000000" Stroke="#FF000000" Canvas.Left="97.5" Canvas.Top="29.5" Height="5" Width="5" RadiusX="2.5" RadiusY="2.5" />
109         <Rectangle Fill="#FF000000" Stroke="#FF000000" Canvas.Left="138" Canvas.Top="30" Height="4" Width="4" RadiusX="2" RadiusY="2" />
110         <Rectangle Fill="#FF000000" Stroke="#FF000000" Canvas.Left="158" Canvas.Top="30" Height="4" Width="4" RadiusX="2" RadiusY="2" />
111         </InkPresenter>
112 </Canvas>