1
<Canvas xmlns="http://schemas.microsoft.com/client/2007" Width="400" Height="400" Background="Black">
2
<InkPresenter Width="400" Height="400" Background="White">
6
<!-- single point width-only stroke -->
8
<Stroke.DrawingAttributes>
9
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
10
</Stroke.DrawingAttributes>
12
<StylusPointCollection>
13
<StylusPoint X="20" Y="20" />
14
</StylusPointCollection>
15
</Stroke.StylusPoints>
18
<!-- two points (vertical line) width-only stroke -->
20
<Stroke.DrawingAttributes>
21
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
22
</Stroke.DrawingAttributes>
24
<StylusPointCollection>
25
<StylusPoint X="20" Y="40" />
26
<StylusPoint X="20" Y="80" />
27
</StylusPointCollection>
28
</Stroke.StylusPoints>
31
<!-- two points (horizontal line) width-only stroke -->
33
<Stroke.DrawingAttributes>
34
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
35
</Stroke.DrawingAttributes>
37
<StylusPointCollection>
38
<StylusPoint X="40" Y="20" />
39
<StylusPoint X="80" Y="20" />
40
</StylusPointCollection>
41
</Stroke.StylusPoints>
44
<!-- two points (diagonal line) width-only stroke -->
46
<Stroke.DrawingAttributes>
47
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="0" Width="10"/>
48
</Stroke.DrawingAttributes>
50
<StylusPointCollection>
51
<StylusPoint X="40" Y="40" />
52
<StylusPoint X="80" Y="80" />
53
</StylusPointCollection>
54
</Stroke.StylusPoints>
57
<!-- single point height-only stroke -->
59
<Stroke.DrawingAttributes>
60
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
61
</Stroke.DrawingAttributes>
63
<StylusPointCollection>
64
<StylusPoint X="120" Y="20" />
65
</StylusPointCollection>
66
</Stroke.StylusPoints>
69
<!-- two points (vertical line) height-only stroke -->
71
<Stroke.DrawingAttributes>
72
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
73
</Stroke.DrawingAttributes>
75
<StylusPointCollection>
76
<StylusPoint X="120" Y="40" />
77
<StylusPoint X="120" Y="80" />
78
</StylusPointCollection>
79
</Stroke.StylusPoints>
82
<!-- two points (horizontal line) height-only stroke -->
84
<Stroke.DrawingAttributes>
85
<DrawingAttributes Color="#FF0000FF" OutlineColor="#FFFF0000" Height="10" Width="0"/>
86
</Stroke.DrawingAttributes>
88
<StylusPointCollection>
89
<StylusPoint X="140" Y="20" />
90
<StylusPoint X="180" Y="20" />
91
</StylusPointCollection>
92
</Stroke.StylusPoints>
95
<!-- two points (diagonal line) height-only 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>
109
<!-- single point large-width 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>
121
<!-- two points (vertical line) large-width 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>
134
<!-- two points (horizontal line) large-width 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>
147
<!-- two points (diagonal line) large-width 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>
160
<!-- single point large-height 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>
172
<!-- two points (vertical line) large-width 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>
185
<!-- two points (horizontal line) large-width 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>
198
<!-- two points (diagonal line) large-width 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>
212
<!-- single point double-width 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>
224
<!-- two points (vertical line) double-width 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>
237
<!-- two points (horizontal line) double-width 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>
250
<!-- two points (diagonal line) double-width 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>
263
<!-- single point double-height 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>
275
<!-- two points (vertical line) double-width 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>
288
<!-- two points (horizontal line) double-width 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>
301
<!-- two points (diagonal line) double-width 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>
315
<!-- single point 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>
327
<!-- two points (vertical line) 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>
340
<!-- two points (horizontal line) 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>
353
<!-- two points (diagonal line) 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>
366
<!-- single point stroke, no pressure -->
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>
378
<!-- two points (vertical line) stroke, no pressure -->
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>
391
<!-- two points (horizontal line) double-width stroke, no pressure -->
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>
404
<!-- two points (diagonal line) stroke, no pressure -->
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>
417
<!-- single point stroke, half-pressure -->
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>
429
<!-- two points (vertical line) stroke, half-pressure -->
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>
442
<!-- two points (horizontal line) double-width stroke, half-pressure -->
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>
455
<!-- two points (diagonal line) stroke, half-pressure -->
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>
468
<!-- single point stroke, no pressure -->
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>
480
<!-- two points (vertical line) stroke, no pressure -->
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>
493
<!-- two points (horizontal line) double-width stroke, no pressure -->
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>
506
<!-- two points (diagonal line) stroke, no pressure -->
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>
519
<!-- single point stroke, full-pressure -->
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>
531
<!-- two points (vertical line) stroke, full-pressure -->
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>
544
<!-- two points (horizontal line) double-width stroke, full-pressure -->
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>
557
<!-- two points (diagonal line) stroke, full-pressure -->
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>
570
</InkPresenter.Strokes>