RadHorizontalLinearGauge performance

1 Answer 45 Views
Gauges
Patrick
Top achievements
Rank 1
Patrick asked on 18 May 2023, 01:43 PM

I am using a RadHorizontalLinearGauge and a RadVerticalLinearGauge in a WPF UserControl. Each of these controls has 7 properties that are bound, Min, Max, MajorTickStep, MiddleTicks, StartTickOffset, EndTickOffset, and LabelFormat to DependencyProperties. As I drag an image back and forth in the UI (pan), the gauge control properties get updated accordingly. Please refer to the attached image.  The performance can be pretty sluggish because I think the controls update after every property update instead of all at once.  What I need is the old WinForms BeginUpdate/EndUpdate functions, but I don't think the equivalent functionality exists in WPF. Do you have any suggestions on how I can improve the performance?

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 23 May 2023, 08:54 AM

Hello Patrick,

Thank you for the attached picture. 

You are correct that there aren't methods equivalent to BeginUpdate/EndUpdate for the UI for WPF version of the gauge. 

That said, you can check out the following thread: VerticalLinearScale, where a similar question was discussed. To summarize, you can try setting the MajorTickStep and MiddleTicks properties before the Max property. Additionally, reducing the number of generated ticks should also improve the performance. 

Do give this a try and let me know, if it helps.

Regards,
Vladimir Stoyanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Gauges
Asked by
Patrick
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or