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

« back to all changes in this revision

Viewing changes to test/xaml/test-inkpresenter-height-width.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/client/2007" Width="400" Height="400" Background="Black">
 
2
        <InkPresenter Width="400" Height="400" Background="White">
 
3
        <InkPresenter.Strokes>
 
4
                <StrokeCollection>
 
5
 
 
6
<!-- single point width-only stroke -->
 
7
                        <Stroke>
 
8
                        <Stroke.DrawingAttributes>
 
9
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
 
10
                        </Stroke.DrawingAttributes>
 
11
                        <Stroke.StylusPoints>
 
12
                                <StylusPointCollection>
 
13
                                        <StylusPoint X="20" Y="20" />
 
14
                                </StylusPointCollection>
 
15
                        </Stroke.StylusPoints>
 
16
                        </Stroke>
 
17
 
 
18
<!-- two points (vertical line) width-only stroke -->
 
19
                        <Stroke>
 
20
                        <Stroke.DrawingAttributes>
 
21
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
 
22
                        </Stroke.DrawingAttributes>
 
23
                        <Stroke.StylusPoints>
 
24
                                <StylusPointCollection>
 
25
                                        <StylusPoint X="20" Y="40" />
 
26
                                        <StylusPoint X="20" Y="80" />
 
27
                                </StylusPointCollection>
 
28
                        </Stroke.StylusPoints>
 
29
                        </Stroke>
 
30
 
 
31
<!-- two points (horizontal line) width-only stroke -->
 
32
                        <Stroke>
 
33
                        <Stroke.DrawingAttributes>
 
34
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
 
35
                        </Stroke.DrawingAttributes>
 
36
                        <Stroke.StylusPoints>
 
37
                                <StylusPointCollection>
 
38
                                        <StylusPoint X="40" Y="20" />
 
39
                                        <StylusPoint X="80" Y="20" />
 
40
                                </StylusPointCollection>
 
41
                        </Stroke.StylusPoints>
 
42
                        </Stroke>
 
43
 
 
44
<!-- two points (diagonal line) width-only stroke -->
 
45
                        <Stroke>
 
46
                        <Stroke.DrawingAttributes>
 
47
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
 
48
                        </Stroke.DrawingAttributes>
 
49
                        <Stroke.StylusPoints>
 
50
                                <StylusPointCollection>
 
51
                                        <StylusPoint X="40" Y="40" />
 
52
                                        <StylusPoint X="80" Y="80" />
 
53
                                </StylusPointCollection>
 
54
                        </Stroke.StylusPoints>
 
55
                        </Stroke>
 
56
 
 
57
<!-- single point height-only stroke -->
 
58
                        <Stroke>
 
59
                        <Stroke.DrawingAttributes>
 
60
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
 
61
                        </Stroke.DrawingAttributes>
 
62
                        <Stroke.StylusPoints>
 
63
                                <StylusPointCollection>
 
64
                                        <StylusPoint X="120" Y="20" />
 
65
                                </StylusPointCollection>
 
66
                        </Stroke.StylusPoints>
 
67
                        </Stroke>
 
68
 
 
69
<!-- two points (vertical line) height-only stroke -->
 
70
                        <Stroke>
 
71
                        <Stroke.DrawingAttributes>
 
72
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
 
73
                        </Stroke.DrawingAttributes>
 
74
                        <Stroke.StylusPoints>
 
75
                                <StylusPointCollection>
 
76
                                        <StylusPoint X="120" Y="40" />
 
77
                                        <StylusPoint X="120" Y="80" />
 
78
                                </StylusPointCollection>
 
79
                        </Stroke.StylusPoints>
 
80
                        </Stroke>
 
81
 
 
82
<!-- two points (horizontal line) height-only stroke -->
 
83
                        <Stroke>
 
84
                        <Stroke.DrawingAttributes>
 
85
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
 
86
                        </Stroke.DrawingAttributes>
 
87
                        <Stroke.StylusPoints>
 
88
                                <StylusPointCollection>
 
89
                                        <StylusPoint X="140" Y="20" />
 
90
                                        <StylusPoint X="180" Y="20" />
 
91
                                </StylusPointCollection>
 
92
                        </Stroke.StylusPoints>
 
93
                        </Stroke>
 
94
 
 
95
<!-- two points (diagonal line) height-only stroke -->
 
96
                        <Stroke>
 
97
                        <Stroke.DrawingAttributes>
 
98
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
 
99
                        </Stroke.DrawingAttributes>
 
100
                        <Stroke.StylusPoints>
 
101
                                <StylusPointCollection>
 
102
                                        <StylusPoint X="140" Y="40" />
 
103
                                        <StylusPoint X="180" Y="80" />
 
104
                                </StylusPointCollection>
 
105
                        </Stroke.StylusPoints>
 
106
                        </Stroke>
 
107
 
 
108
 
 
109
<!-- single point large-width stroke -->
 
110
                        <Stroke>
 
111
                        <Stroke.DrawingAttributes>
 
112
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="1" Width="10"/>
 
113
                        </Stroke.DrawingAttributes>
 
114
                        <Stroke.StylusPoints>
 
115
                                <StylusPointCollection>
 
116
                                        <StylusPoint X="20" Y="120" />
 
117
                                </StylusPointCollection>
 
118
                        </Stroke.StylusPoints>
 
119
                        </Stroke>
 
120
 
 
121
<!-- two points (vertical line) large-width stroke -->
 
122
                        <Stroke>
 
123
                        <Stroke.DrawingAttributes>
 
124
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="1" Width="10"/>
 
125
                        </Stroke.DrawingAttributes>
 
126
                        <Stroke.StylusPoints>
 
127
                                <StylusPointCollection>
 
128
                                        <StylusPoint X="20" Y="140" />
 
129
                                        <StylusPoint X="20" Y="180" />
 
130
                                </StylusPointCollection>
 
131
                        </Stroke.StylusPoints>
 
132
                        </Stroke>
 
133
 
 
134
<!-- two points (horizontal line) large-width stroke -->
 
135
                        <Stroke>
 
136
                        <Stroke.DrawingAttributes>
 
137
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="1" Width="10"/>
 
138
                        </Stroke.DrawingAttributes>
 
139
                        <Stroke.StylusPoints>
 
140
                                <StylusPointCollection>
 
141
                                        <StylusPoint X="40" Y="120" />
 
142
                                        <StylusPoint X="80" Y="120" />
 
143
                                </StylusPointCollection>
 
144
                        </Stroke.StylusPoints>
 
145
                        </Stroke>
 
146
 
 
147
<!-- two points (diagonal line) large-width stroke -->
 
148
                        <Stroke>
 
149
                        <Stroke.DrawingAttributes>
 
150
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="1" Width="10"/>
 
151
                        </Stroke.DrawingAttributes>
 
152
                        <Stroke.StylusPoints>
 
153
                                <StylusPointCollection>
 
154
                                        <StylusPoint X="40" Y="140" />
 
155
                                        <StylusPoint X="80" Y="180" />
 
156
                                </StylusPointCollection>
 
157
                        </Stroke.StylusPoints>
 
158
                        </Stroke>
 
159
 
 
160
<!-- single point large-height stroke -->
 
161
                        <Stroke>
 
162
                        <Stroke.DrawingAttributes>
 
163
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="1"/>
 
164
                        </Stroke.DrawingAttributes>
 
165
                        <Stroke.StylusPoints>
 
166
                                <StylusPointCollection>
 
167
                                        <StylusPoint X="120" Y="120" />
 
168
                                </StylusPointCollection>
 
169
                        </Stroke.StylusPoints>
 
170
                        </Stroke>
 
171
 
 
172
<!-- two points (vertical line) large-width stroke -->
 
173
                        <Stroke>
 
174
                        <Stroke.DrawingAttributes>
 
175
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="1"/>
 
176
                        </Stroke.DrawingAttributes>
 
177
                        <Stroke.StylusPoints>
 
178
                                <StylusPointCollection>
 
179
                                        <StylusPoint X="120" Y="140" />
 
180
                                        <StylusPoint X="120" Y="180" />
 
181
                                </StylusPointCollection>
 
182
                        </Stroke.StylusPoints>
 
183
                        </Stroke>
 
184
 
 
185
<!-- two points (horizontal line) large-width stroke -->
 
186
                        <Stroke>
 
187
                        <Stroke.DrawingAttributes>
 
188
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="1"/>
 
189
                        </Stroke.DrawingAttributes>
 
190
                        <Stroke.StylusPoints>
 
191
                                <StylusPointCollection>
 
192
                                        <StylusPoint X="140" Y="120" />
 
193
                                        <StylusPoint X="180" Y="120" />
 
194
                                </StylusPointCollection>
 
195
                        </Stroke.StylusPoints>
 
196
                        </Stroke>
 
197
 
 
198
<!-- two points (diagonal line) large-width stroke -->
 
199
                        <Stroke>
 
200
                        <Stroke.DrawingAttributes>
 
201
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="1"/>
 
202
                        </Stroke.DrawingAttributes>
 
203
                        <Stroke.StylusPoints>
 
204
                                <StylusPointCollection>
 
205
                                        <StylusPoint X="140" Y="140" />
 
206
                                        <StylusPoint X="180" Y="180" />
 
207
                                </StylusPointCollection>
 
208
                        </Stroke.StylusPoints>
 
209
                        </Stroke>
 
210
 
 
211
 
 
212
<!-- single point double-width stroke -->
 
213
                        <Stroke>
 
214
                        <Stroke.DrawingAttributes>
 
215
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="5" Width="10"/>
 
216
                        </Stroke.DrawingAttributes>
 
217
                        <Stroke.StylusPoints>
 
218
                                <StylusPointCollection>
 
219
                                        <StylusPoint X="20" Y="220" />
 
220
                                </StylusPointCollection>
 
221
                        </Stroke.StylusPoints>
 
222
                        </Stroke>
 
223
 
 
224
<!-- two points (vertical line) double-width stroke -->
 
225
                        <Stroke>
 
226
                        <Stroke.DrawingAttributes>
 
227
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="5" Width="10"/>
 
228
                        </Stroke.DrawingAttributes>
 
229
                        <Stroke.StylusPoints>
 
230
                                <StylusPointCollection>
 
231
                                        <StylusPoint X="20" Y="240" />
 
232
                                        <StylusPoint X="20" Y="280" />
 
233
                                </StylusPointCollection>
 
234
                        </Stroke.StylusPoints>
 
235
                        </Stroke>
 
236
 
 
237
<!-- two points (horizontal line) double-width stroke -->
 
238
                        <Stroke>
 
239
                        <Stroke.DrawingAttributes>
 
240
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="5" Width="10"/>
 
241
                        </Stroke.DrawingAttributes>
 
242
                        <Stroke.StylusPoints>
 
243
                                <StylusPointCollection>
 
244
                                        <StylusPoint X="40" Y="220" />
 
245
                                        <StylusPoint X="80" Y="220" />
 
246
                                </StylusPointCollection>
 
247
                        </Stroke.StylusPoints>
 
248
                        </Stroke>
 
249
 
 
250
<!-- two points (diagonal line) double-width stroke -->
 
251
                        <Stroke>
 
252
                        <Stroke.DrawingAttributes>
 
253
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="5" Width="10"/>
 
254
                        </Stroke.DrawingAttributes>
 
255
                        <Stroke.StylusPoints>
 
256
                                <StylusPointCollection>
 
257
                                        <StylusPoint X="40" Y="240" />
 
258
                                        <StylusPoint X="80" Y="280" />
 
259
                                </StylusPointCollection>
 
260
                        </Stroke.StylusPoints>
 
261
                        </Stroke>
 
262
 
 
263
<!-- single point double-height stroke -->
 
264
                        <Stroke>
 
265
                        <Stroke.DrawingAttributes>
 
266
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="5"/>
 
267
                        </Stroke.DrawingAttributes>
 
268
                        <Stroke.StylusPoints>
 
269
                                <StylusPointCollection>
 
270
                                        <StylusPoint X="120" Y="220" />
 
271
                                </StylusPointCollection>
 
272
                        </Stroke.StylusPoints>
 
273
                        </Stroke>
 
274
 
 
275
<!-- two points (vertical line) double-width stroke -->
 
276
                        <Stroke>
 
277
                        <Stroke.DrawingAttributes>
 
278
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="5"/>
 
279
                        </Stroke.DrawingAttributes>
 
280
                        <Stroke.StylusPoints>
 
281
                                <StylusPointCollection>
 
282
                                        <StylusPoint X="120" Y="240" />
 
283
                                        <StylusPoint X="120" Y="280" />
 
284
                                </StylusPointCollection>
 
285
                        </Stroke.StylusPoints>
 
286
                        </Stroke>
 
287
 
 
288
<!-- two points (horizontal line) double-width stroke -->
 
289
                        <Stroke>
 
290
                        <Stroke.DrawingAttributes>
 
291
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="5"/>
 
292
                        </Stroke.DrawingAttributes>
 
293
                        <Stroke.StylusPoints>
 
294
                                <StylusPointCollection>
 
295
                                        <StylusPoint X="140" Y="220" />
 
296
                                        <StylusPoint X="180" Y="220" />
 
297
                                </StylusPointCollection>
 
298
                        </Stroke.StylusPoints>
 
299
                        </Stroke>
 
300
 
 
301
<!-- two points (diagonal line) double-width stroke -->
 
302
                        <Stroke>
 
303
                        <Stroke.DrawingAttributes>
 
304
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="5"/>
 
305
                        </Stroke.DrawingAttributes>
 
306
                        <Stroke.StylusPoints>
 
307
                                <StylusPointCollection>
 
308
                                        <StylusPoint X="140" Y="240" />
 
309
                                        <StylusPoint X="180" Y="280" />
 
310
                                </StylusPointCollection>
 
311
                        </Stroke.StylusPoints>
 
312
                        </Stroke>
 
313
 
 
314
 
 
315
<!-- single point stroke -->
 
316
                        <Stroke>
 
317
                        <Stroke.DrawingAttributes>
 
318
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
319
                        </Stroke.DrawingAttributes>
 
320
                        <Stroke.StylusPoints>
 
321
                                <StylusPointCollection>
 
322
                                        <StylusPoint X="20" Y="320" />
 
323
                                </StylusPointCollection>
 
324
                        </Stroke.StylusPoints>
 
325
                        </Stroke>
 
326
 
 
327
<!-- two points (vertical line) stroke -->
 
328
                        <Stroke>
 
329
                        <Stroke.DrawingAttributes>
 
330
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
331
                        </Stroke.DrawingAttributes>
 
332
                        <Stroke.StylusPoints>
 
333
                                <StylusPointCollection>
 
334
                                        <StylusPoint X="20" Y="340" />
 
335
                                        <StylusPoint X="20" Y="380" />
 
336
                                </StylusPointCollection>
 
337
                        </Stroke.StylusPoints>
 
338
                        </Stroke>
 
339
 
 
340
<!-- two points (horizontal line) stroke -->
 
341
                        <Stroke>
 
342
                        <Stroke.DrawingAttributes>
 
343
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
344
                        </Stroke.DrawingAttributes>
 
345
                        <Stroke.StylusPoints>
 
346
                                <StylusPointCollection>
 
347
                                        <StylusPoint X="40" Y="320" />
 
348
                                        <StylusPoint X="80" Y="320" />
 
349
                                </StylusPointCollection>
 
350
                        </Stroke.StylusPoints>
 
351
                        </Stroke>
 
352
 
 
353
<!-- two points (diagonal line) stroke -->
 
354
                        <Stroke>
 
355
                        <Stroke.DrawingAttributes>
 
356
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
357
                        </Stroke.DrawingAttributes>
 
358
                        <Stroke.StylusPoints>
 
359
                                <StylusPointCollection>
 
360
                                        <StylusPoint X="40" Y="340" />
 
361
                                        <StylusPoint X="80" Y="380" />
 
362
                                </StylusPointCollection>
 
363
                        </Stroke.StylusPoints>
 
364
                        </Stroke>
 
365
 
 
366
<!-- single point stroke, no pressure -->
 
367
                        <Stroke>
 
368
                        <Stroke.DrawingAttributes>
 
369
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
370
                        </Stroke.DrawingAttributes>
 
371
                        <Stroke.StylusPoints>
 
372
                                <StylusPointCollection>
 
373
                                        <StylusPoint X="120" Y="320" PressureFactor="0" />
 
374
                                </StylusPointCollection>
 
375
                        </Stroke.StylusPoints>
 
376
                        </Stroke>
 
377
 
 
378
<!-- two points (vertical line) stroke, no pressure -->
 
379
                        <Stroke>
 
380
                        <Stroke.DrawingAttributes>
 
381
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
382
                        </Stroke.DrawingAttributes>
 
383
                        <Stroke.StylusPoints>
 
384
                                <StylusPointCollection>
 
385
                                        <StylusPoint X="120" Y="340" PressureFactor="0" />
 
386
                                        <StylusPoint X="120" Y="380" PressureFactor="0" />
 
387
                                </StylusPointCollection>
 
388
                        </Stroke.StylusPoints>
 
389
                        </Stroke>
 
390
 
 
391
<!-- two points (horizontal line) double-width stroke, no pressure -->
 
392
                        <Stroke>
 
393
                        <Stroke.DrawingAttributes>
 
394
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
395
                        </Stroke.DrawingAttributes>
 
396
                        <Stroke.StylusPoints>
 
397
                                <StylusPointCollection>
 
398
                                        <StylusPoint X="140" Y="320" PressureFactor="0" />
 
399
                                        <StylusPoint X="180" Y="320" PressureFactor="0" />
 
400
                                </StylusPointCollection>
 
401
                        </Stroke.StylusPoints>
 
402
                        </Stroke>
 
403
 
 
404
<!-- two points (diagonal line) stroke, no pressure -->
 
405
                        <Stroke>
 
406
                        <Stroke.DrawingAttributes>
 
407
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
408
                        </Stroke.DrawingAttributes>
 
409
                        <Stroke.StylusPoints>
 
410
                                <StylusPointCollection>
 
411
                                        <StylusPoint X="140" Y="340" PressureFactor="0" />
 
412
                                        <StylusPoint X="180" Y="380" PressureFactor="0" />
 
413
                                </StylusPointCollection>
 
414
                        </Stroke.StylusPoints>
 
415
                        </Stroke>
 
416
 
 
417
<!-- single point stroke, half-pressure -->
 
418
                        <Stroke>
 
419
                        <Stroke.DrawingAttributes>
 
420
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
421
                        </Stroke.DrawingAttributes>
 
422
                        <Stroke.StylusPoints>
 
423
                                <StylusPointCollection>
 
424
                                        <StylusPoint X="220" Y="320" PressureFactor="0.5" />
 
425
                                </StylusPointCollection>
 
426
                        </Stroke.StylusPoints>
 
427
                        </Stroke>
 
428
 
 
429
<!-- two points (vertical line) stroke, half-pressure -->
 
430
                        <Stroke>
 
431
                        <Stroke.DrawingAttributes>
 
432
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
433
                        </Stroke.DrawingAttributes>
 
434
                        <Stroke.StylusPoints>
 
435
                                <StylusPointCollection>
 
436
                                        <StylusPoint X="220" Y="340" PressureFactor="0.5" />
 
437
                                        <StylusPoint X="220" Y="380" PressureFactor="0.5" />
 
438
                                </StylusPointCollection>
 
439
                        </Stroke.StylusPoints>
 
440
                        </Stroke>
 
441
 
 
442
<!-- two points (horizontal line) double-width stroke, half-pressure -->
 
443
                        <Stroke>
 
444
                        <Stroke.DrawingAttributes>
 
445
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
446
                        </Stroke.DrawingAttributes>
 
447
                        <Stroke.StylusPoints>
 
448
                                <StylusPointCollection>
 
449
                                        <StylusPoint X="240" Y="320" PressureFactor="0.5" />
 
450
                                        <StylusPoint X="280" Y="320" PressureFactor="0.5" />
 
451
                                </StylusPointCollection>
 
452
                        </Stroke.StylusPoints>
 
453
                        </Stroke>
 
454
 
 
455
<!-- two points (diagonal line) stroke, half-pressure -->
 
456
                        <Stroke>
 
457
                        <Stroke.DrawingAttributes>
 
458
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
459
                        </Stroke.DrawingAttributes>
 
460
                        <Stroke.StylusPoints>
 
461
                                <StylusPointCollection>
 
462
                                        <StylusPoint X="240" Y="340" PressureFactor="0.5" />
 
463
                                        <StylusPoint X="280" Y="380" PressureFactor="0.5" />
 
464
                                </StylusPointCollection>
 
465
                        </Stroke.StylusPoints>
 
466
                        </Stroke>
 
467
 
 
468
<!-- single point stroke, no pressure -->
 
469
                        <Stroke>
 
470
                        <Stroke.DrawingAttributes>
 
471
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
472
                        </Stroke.DrawingAttributes>
 
473
                        <Stroke.StylusPoints>
 
474
                                <StylusPointCollection>
 
475
                                        <StylusPoint X="120" Y="320" PressureFactor="0" />
 
476
                                </StylusPointCollection>
 
477
                        </Stroke.StylusPoints>
 
478
                        </Stroke>
 
479
 
 
480
<!-- two points (vertical line) stroke, no pressure -->
 
481
                        <Stroke>
 
482
                        <Stroke.DrawingAttributes>
 
483
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
484
                        </Stroke.DrawingAttributes>
 
485
                        <Stroke.StylusPoints>
 
486
                                <StylusPointCollection>
 
487
                                        <StylusPoint X="120" Y="340" PressureFactor="0" />
 
488
                                        <StylusPoint X="120" Y="380" PressureFactor="0" />
 
489
                                </StylusPointCollection>
 
490
                        </Stroke.StylusPoints>
 
491
                        </Stroke>
 
492
 
 
493
<!-- two points (horizontal line) double-width stroke, no pressure -->
 
494
                        <Stroke>
 
495
                        <Stroke.DrawingAttributes>
 
496
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
497
                        </Stroke.DrawingAttributes>
 
498
                        <Stroke.StylusPoints>
 
499
                                <StylusPointCollection>
 
500
                                        <StylusPoint X="140" Y="320" PressureFactor="0" />
 
501
                                        <StylusPoint X="180" Y="320" PressureFactor="0" />
 
502
                                </StylusPointCollection>
 
503
                        </Stroke.StylusPoints>
 
504
                        </Stroke>
 
505
 
 
506
<!-- two points (diagonal line) stroke, no pressure -->
 
507
                        <Stroke>
 
508
                        <Stroke.DrawingAttributes>
 
509
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
510
                        </Stroke.DrawingAttributes>
 
511
                        <Stroke.StylusPoints>
 
512
                                <StylusPointCollection>
 
513
                                        <StylusPoint X="140" Y="340" PressureFactor="0" />
 
514
                                        <StylusPoint X="180" Y="380" PressureFactor="0" />
 
515
                                </StylusPointCollection>
 
516
                        </Stroke.StylusPoints>
 
517
                        </Stroke>
 
518
 
 
519
<!-- single point stroke, full-pressure -->
 
520
                        <Stroke>
 
521
                        <Stroke.DrawingAttributes>
 
522
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
523
                        </Stroke.DrawingAttributes>
 
524
                        <Stroke.StylusPoints>
 
525
                                <StylusPointCollection>
 
526
                                        <StylusPoint X="320" Y="320" PressureFactor="1.0" />
 
527
                                </StylusPointCollection>
 
528
                        </Stroke.StylusPoints>
 
529
                        </Stroke>
 
530
 
 
531
<!-- two points (vertical line) stroke, full-pressure -->
 
532
                        <Stroke>
 
533
                        <Stroke.DrawingAttributes>
 
534
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
535
                        </Stroke.DrawingAttributes>
 
536
                        <Stroke.StylusPoints>
 
537
                                <StylusPointCollection>
 
538
                                        <StylusPoint X="320" Y="340" PressureFactor="1.0" />
 
539
                                        <StylusPoint X="320" Y="380" PressureFactor="1.0" />
 
540
                                </StylusPointCollection>
 
541
                        </Stroke.StylusPoints>
 
542
                        </Stroke>
 
543
 
 
544
<!-- two points (horizontal line) double-width stroke, full-pressure -->
 
545
                        <Stroke>
 
546
                        <Stroke.DrawingAttributes>
 
547
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
548
                        </Stroke.DrawingAttributes>
 
549
                        <Stroke.StylusPoints>
 
550
                                <StylusPointCollection>
 
551
                                        <StylusPoint X="340" Y="320" PressureFactor="1.0" />
 
552
                                        <StylusPoint X="380" Y="320" PressureFactor="1.0" />
 
553
                                </StylusPointCollection>
 
554
                        </Stroke.StylusPoints>
 
555
                        </Stroke>
 
556
 
 
557
<!-- two points (diagonal line) stroke, full-pressure -->
 
558
                        <Stroke>
 
559
                        <Stroke.DrawingAttributes>
 
560
                                <DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="10"/>
 
561
                        </Stroke.DrawingAttributes>
 
562
                        <Stroke.StylusPoints>
 
563
                                <StylusPointCollection>
 
564
                                        <StylusPoint X="340" Y="340" PressureFactor="1.0" />
 
565
                                        <StylusPoint X="380" Y="380" PressureFactor="1.0" />
 
566
                                </StylusPointCollection>
 
567
                        </Stroke.StylusPoints>
 
568
                        </Stroke>
 
569
                </StrokeCollection>
 
570
        </InkPresenter.Strokes>
 
571
        </InkPresenter>
 
572
</Canvas>