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

  • Home
  • SEARCH
  • 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

I'm rewriting an LOB application whose architecture is like this: Silverlight && Windows Mobile
Silverlight works on client side so putting any sensitive data like connection strings, passwords
Silverlight has been available since quite some time, and Silverlight 2 allows .Net programming
In Silverlight how can I launch / navigate to another page?
Is it possible to develop Silverlight apps to run on Windows Mobile (pre-WP7) devices?
Is Silverlight for Mobile now available as of today, April 21, 2010? Is it
We're developing a windows mobile 6.1 application and would like to make the user
Silverlight v2.0 is getting closer and closer to RTM but I have yet to
Could Silverlight be used for the same things as jQuery, or are they intended
Does silverlight support the remoting functionality of the .net framework?

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.