1
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3
<title>InkPresenter Clipping Update test</title>
8
<script type="text/javascript">
9
function OnMouseEnter (sender, eventArgs)
11
sender.findName ("LowerLeft").point = "0,125";
12
sender.findName ("LowerRight").point = "100,125";
13
sender.findName ("UpperRight").point = "100,-25";
15
function OnMouseLeave (sender, eventArgs)
17
sender.findName ("LowerLeft").point = "0,10";
18
sender.findName ("LowerRight").point = "10,10";
19
sender.findName ("UpperRight").point = "10,0";
24
<object type="application/x-silverlight" data="data:," id="slControl" width="500" height="525">
25
<param name="background" value="#FFFFFF"/>
26
<param name="source" value="#xamlContent"/>
29
<script type="text/xaml" id="xamlContent">
31
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
32
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
x:Name="root" MouseEnter="OnMouseEnter" MouseLeave="OnMouseLeave">
35
<InkPresenter x:Name="foo" Canvas.Top="50" Canvas.Left="50">
36
<InkPresenter.Strokes>
38
<Stroke.DrawingAttributes>
39
<DrawingAttributes Color="#FFFF0000" Height="5" Width="5"/>
40
</Stroke.DrawingAttributes>
42
<StylusPoint X="100" Y="-25" />
43
<StylusPoint X="225" Y="85" />
44
<StylusPoint X="100" Y="200" />
45
<StylusPoint X="-25" Y="85" />
46
<StylusPoint X="100" Y="-25" />
47
</Stroke.StylusPoints>
49
</InkPresenter.Strokes>
53
<LineSegment Point="0,0"/>
54
<LineSegment x:Name="LowerLeft" Point="0,10"/>
55
<LineSegment x:Name="LowerRight" Point="10,10"/>
56
<LineSegment x:Name="UpperRight" Point="10,0"/>
57
<LineSegment Point="0,0"/>
61
<Image Width="100" Height="125" Source="moonlight_logo.png"/>