Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3286394
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:22:30+00:00 2026-05-17T20:22:30+00:00

in Silverlight 3 for Mobile, how do I get at a Path’s figure points,

  • 0

in Silverlight 3 for Mobile, how do I get at a Path’s figure points, so I can ultimately get at it’s Points (X, Y coordinates)? From what I’ve been reading, it sounds like the tree structures of the PathGeometry isn’t stored in Silverlight 3 for Mobile (I’m doing this for WP7)… Is there another way around this? All I want is the Points collection of the Path. Below is the code I’ve written to parse the Path’s Segments to get at the Points, BUT, the Figures collection is always empty, so I can’t even get at the Segments. I’ve also tried using XamlReader.load to read in the Path XAML, but that has the same results, an empty Figures collection. I’ve also pasted the Path XAML below.

Thanks for reading, and hope someone can point me in the right direction 🙂
Tim

    private List<Point> getShapePathPoints(Path shapePath)
    {
        List<Point> shapePathPoints = new List<Point>();

        PathGeometry pathGeometry = (PathGeometry)shapePath.Data;
        foreach (PathFigure pathFigure in pathGeometry.Figures)
        {

            foreach (PolyLineSegment segment in pathFigure.Segments)
            {
                foreach (Point point in segment.Points)
                {
                    shapePathPoints.Add(point);
                }
            }
        }

        return shapePathPoints;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:22:30+00:00Added an answer on May 17, 2026 at 8:22 pm

    Figures and Segements are a high level programmatic way to define a path. They do not represent the internal storage used by the path itself since in general they are not memory efficient.

    The Mini path language that is used to define the vast majority of paths is a form of serialisation for the actual internal representation of a path. When such paths are created the programmatic sets of Figures are not generated.

    It would have been a nice addition to the API to have a method that could reverse engineer a mini language path back to a set of figures but as usual, nice to haves need to weighed against cost.

    Your options are:-

    • use Xaml that includes Figures and Segment instances rather then the mini path language
    • use XmlReader or XDocument to load the Xaml containing paths, find the path of interest, parse the mini language yourself.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Back in the good ol' Windows Mobile day (CE based) one good get a
Silverlight can use WCF, Web Services, REST based services, .NET RIA Services, but it
Silverlight 4 now provides controls to handle Drag and Drop actions. All the Target
Silverlight's DataForm seems great. I see a ton of documentation for it in SL3,
Silverlight 4, but I'm not sure if this applys to WPF also. This is
Silverlight 4 now include the option for creating a context menu upon right clicking.
Using Silverlight 4 & WPF 4, I'm trying to create a button style that
Within Silverlight 4 printing with the printing API will it auto-scroll covered areas? Excuse
In Silverlight, is it possible to do a bouncing balls style animation entirely in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.