Re: Need to update polyline points after moving/dragging the polyline




"Walter Wang [MSFT]" <wawang@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:UaRp%23sSRHHA.2356@xxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • RE: Need to update polyline points after moving/dragging 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 ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: Need to update polyline points after moving/dragging the polyline
    ... I realize that the point's position is relative to the container it's in, ... if I ALWAYS create the polyline (or any other shape or object I ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: Animation to adjust position of elements. (wpf)
    ... suggest that you use a Canvas instead of a Grid in your WPF application. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pentesting tool - Commercial
    ... > The numbers show that Core Impact is superior to Canvas and Metasploit. ... "MSF has no exploit modules for ProFTPD at the time of writing. ... Immunity CANVAS does not support any ProFTPD issues at this time." ... CANVAS using the GLEG and Argeniss zero-day exploit packs supports a large number of interesting remotely exploitable bugs that aren't found in MSF or IMPACT. ...
    (Pen-Test)
  • Re: How do I Sleep for a specified amount of time and relinquish c
    ... Finally, the Windows thread scheduling is not a trivial topic, it is ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)