RE: Need to update polyline points after moving/dragging the polyline
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Wed, 31 Jan 2007 11:30:21 GMT
Hi moondaddy,
A Point's position is relative to its container, in this case, the
container is the Polyline. When you drag and move the Polyline on the
Canvas, the Polyline's position is also relative to the Canvas and it's
only the Polyline's position get changed, the Points in the Polyline is not
changed.
You can verify this behavior by using following simple XAML and modify the
Canvas.Left/Top and observe the behavior:
<Canvas Name="myCanvas">
<Polyline Name="myPolyline" Canvas.Left="50" Canvas.Top="50"
Stroke="Blue" StrokeThickness="2">
<Polyline.Points>
<Point X="0" Y="0"></Point>
<Point X="100" Y="100"></Point>
</Polyline.Points>
</Polyline>
#The Layout System
http://msdn2.microsoft.com/en-us/library/ms745058.aspx#LayoutSystem_Measure_
Arrange
Sincerely,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Prev by Date: Re: downloading dlls
- Next by Date: Re: Get Culture Info from Language Name
- Previous by thread: Obtaining dimensions and coordinates of display window of WebBrowser
- Next by thread: Re: Need to update polyline points after moving/dragging the polyline
- Index(es):
Relevant Pages
|