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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:22:29+00:00 2026-05-24T06:22:29+00:00

I am using a custom style in a resource dictionary for the LineDataPoint available

  • 0

I am using a custom style in a resource dictionary for the LineDataPoint available with the toolkit.

I want the datapoint to increase in size on the mouseover event and the revert back to its original size once the mouse leaves. What’s the best way to implement 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-24T06:22:29+00:00Added an answer on May 24, 2026 at 6:22 am

    I haven’t found a better solution then using an extended class with necessary functionality:

    public class ExtendedLineSeries : LineSeries
    {
        //I assume that all points have the same size
        private double _originalDataPointWidth;
        private double _originalDataPointHeight;
    
        protected override DataPoint CreateDataPoint()
        {
            var dp = base.CreateDataPoint();
    
            if (this.IncreaseDataPointSizeTo != null)
            {
                dp.MouseEnter += new MouseEventHandler(OnDataPointMouseEnter);
                dp.MouseLeave += new MouseEventHandler(OnDataPointMouseLeave);
            }
    
            return dp;
        }
        /// <summary>
        /// The width and height to which the point is increased in size
        /// </summary>
        public double? IncreaseDataPointSizeTo { get; set; }
    
        void OnDataPointMouseLeave(object sender, MouseEventArgs e)
        {
            var dp = sender as DataPoint;
            if (dp != null)
            {
                //return to the original size
                dp.Width = _originalDataPointWidth;
                dp.Height = _originalDataPointHeight;
                dp.UpdateLayout();
                base.UpdateDataPoint(dp);
            }
        }
    
        void OnDataPointMouseEnter(object sender, MouseEventArgs e)
        {
            var dp = sender as DataPoint;
            if (dp != null)
            {
                //remember the original size and enlarge the data point
                _originalDataPointWidth = dp.ActualWidth;
                _originalDataPointHeight = dp.ActualHeight;
                dp.Width = dp.Height = IncreaseDataPointSizeTo.Value;
                dp.UpdateLayout();
                base.UpdateDataPoint(dp);
            }
        }
    }
    

    This class can be used everywhere where you use the common LineSeries class. It has the additional property IncreaseDataPointSizeTo which contains the final size in width and height of the hovered datapoint.

    Example of xaml code:

    <charting:Chart>
        <charting:Chart.Series>
            <ext:ExtendedLineSeries IsSelectionEnabled="True"
                                    IncreaseDataPointSizeTo="16" ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to style the Select element using http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/ the options are starting
I create the custom title using the style.I code some from http://labs.makemachine.net/2010/03/custom-android-window-title/ I have
is there a way to style the radio button and checkbox using custom images.
I want to create 3 different themes for a dialog using a custom (own)
I'm using the custom progress dialog given here , which as the style shown
I am trying to set a custom style to a GWT CellBrowser widget using
I'm using a ratingbar with a custom style that is acting as an indicator,
I'm using the Silverlight 3 datagrid and have a number of custom styles applied
When using custom template for Login control , if we add control with ID
When using custom assemblies in a visual studio project. How does one check 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.