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 6555501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:49:40+00:00 2026-05-25T12:49:40+00:00

I am developing a WPF application that has a stacked column chart (I’m using

  • 0

I am developing a WPF application that has a stacked column chart (I’m using the Silverlight Toolkit charting features). I need to dynamically overlay a semi-transparent rectangle over a section of the chart – the size and location of the rectangle needs to adapt to the number of data points on the X axis. The X-axis values represent days, the number of which may vary, but the rectangle always needs to cover 30 days.

In any case, I’ve figured out most of it, but I need to find out how much width the Y-axis label section of the chart is taking up so that I can take it into account in my rectangle size and location calculations.

There is an “Actual Width” property for the chart available, but I don’t know how to get the actual width for just the Y-axis label area. Does anyone know how to find this?

  • 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-25T12:49:41+00:00Added an answer on May 25, 2026 at 12:49 pm

    I was able to address this issue by waiting until the chart was loaded and then using the techniques described here http://www.scottlogic.co.uk/blog/colin/2009/03/adding-a-location-crosshair-to-silverlight-charts-again/.

    The key thing here is to do the processing when the Loaded event is received:

    MyChart.Loaded += (sender, e) =>
    {
        // MyChart is about to be rendered
        // it's now safe to access the ActualWidth properties of the chart components
        MyRectangle.Left = MyChart.ActualWidth/2;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a WPF application that must run using Windows Classic theme. The
I am currently developing an application in C# using WPF. I need the program
I'm developing an WPF application that has an reference of a C# Class Library.
I am developing a simple WPF Application that requires a database. My question is,
I am developing a WPF application, and I need your advice. I have to
I am developing an application using WPF to dynamically render content, including text and
Ok so I'm developing a WPF application that makes heavy use of SQL Server.
i'm developing a WPF (.NET 3.5) application where i need to validate a textbox
I have an application which I am developing using WPF\Prism\MVVM. All is going well
i'm developing an application (wpf) that have 3 windows. in the main window user

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.