Trading Chart: Remove Horizontal Scroll Bar Dotted Line When In Focus?

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
User avatar
JeffFerguson
Posts: 9
Joined: Wed Oct 07, 2020 1:25 am

Trading Chart: Remove Horizontal Scroll Bar Dotted Line When In Focus?

Post by JeffFerguson » Wed Oct 28, 2020 12:03 am

The horizontal scroll bar associated with a TradingChart instance has a dotted line around it when the scroll bar has the focus (see attached image). Is there any way to get rid of that?
Attachments
scrollbar focus.jpg
scrollbar focus.jpg (26 KiB) Viewed 2636 times

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Trading Chart: Remove Horizontal Scroll Bar Dotted Line When In Focus?

Post by Arction_LasseP » Wed Oct 28, 2020 7:18 am

Hello Jeff,

The dotted line around the scrollbar marks that the bar has focus, and keys controls can be used to move it. Therefore, the correct options can be found KeyControlFocus property. There is no option to turn off the line, but you can change its color to transparent.

Code: Select all

horizontalScrollBar.KeyControlFocus.Color = Color.FromArgb(0, 0, 0, 0);
Hope this helps.
Best regards,
Lasse

Post Reply