I'm working with RadTrackBar in WinForms, and I'm trying to dynamically refresh the labels by triggering the LabelFormatting event after programmatically changing properties like Minimum, Maximum, or LabelStyle.
However, calling methods like Invalidate() and Update() does not seem to re-trigger the LabelFormatting event or force label reconstruction.
As a temporary workaround, I'm using this code:
However, calling methods like Invalidate() and Update() does not seem to re-trigger the LabelFormatting event or force label reconstruction.
As a temporary workaround, I'm using this code:
radTrackBar1.Maximum += 1;
radTrackBar1.Maximum -= 1;
It does trigger LabelFormatting, but honestly feels like a hack. I'm hoping there's a more reliable or cleaner way to rebuild the labels or directly invoke the formatting logic.
I've attached a screenshot to illustrate my use case and how the labels are styled after formatting.
Does anyone know of an official or recommended approach?