Need help finding the correct way to convert DATA point to SCREEN point (pixels) and back.

33 posts, 0 answers
  1. Nathanial
    Nathanial avatar
    25 posts
    Member since:
    Sep 2016

    Posted 04 Nov 2016 Link to this post

    The test projects are nice, I don't know why it didn't work in mine at first. 

    I cannot get it to work in my "real project" which is going to take a long time to fix up.

    what it boils down to is, so far none of these work in my "real project."
    UIUpdated doesn't work. I wish it did. But even there, where it should be ready to convert, does not work all the time. 

    Are there any ways of forcing the graph to update so I can properly do this? Or a method to say "just finished drawing!" and then update, and force re-draw? Thanks :) I will be trying over and over to get one of these to work.

    Hands down one of the most mysterious code problems in my life. I absolutely hate this scenario. 
  2. Martin Ivanov
    Martin Ivanov avatar
    1410 posts

    Posted 07 Nov 2016 Link to this post

    Hi Nathanial,

    Sorry to hear that the suggested approaches do not work on your side.

    About the axes, as any other UI element the WPF framework is taking care of its rendering. So you can't easily force it to be rendered. You can use the Measure(), Arrange() and UpdateLayout() to force measuring the axis, and in this case, the method could work. But, there are too many elements that depends on the axis' proper layout, so I can't guarantee that this will work properly, or if it will work at all.

    If you decide, you can isolate the issue in a new project (or use your original one if not too big) and open a new support ticket from your account. This way you can attach it and ask for help there.

    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  3. Nathanial
    Nathanial avatar
    25 posts
    Member since:
    Sep 2016

    Posted 07 Nov 2016 Link to this post


    My end conclusion is this: 

    In the big project, there are too many updates and refresh going on to my chart...that we need to figure out on our side. I can get it to work sometimes, but a mystery is happening that is "breaking" the chart if that makes sense. We will figure it out eventually. 

    You may close this thread if you want. Have to give up for this release and fix it next go around. Thanks for all the tips, it was very helpful and once we fix the program up a bit we can get it working I'm sure. :)
Back to Top