Hi!
I need to add shadow to RadProgressBar text. I've tried to add new TextPrimitive element with shadow to Children collection (it works for RadWaitingBar), but the control shows only the existing ProgressBarTextElement. Unfortunately, I can,t manage to change Shadow member for ProgressBarTextElement.
Code changing shadow that does not work:
Code that works for RadWaitingBar:
I need to add shadow to RadProgressBar text. I've tried to add new TextPrimitive element with shadow to Children collection (it works for RadWaitingBar), but the control shows only the existing ProgressBarTextElement. Unfortunately, I can,t manage to change Shadow member for ProgressBarTextElement.
Code changing shadow that does not work:
((ProgressBarTextElement)
this
.TablesProgressBar.ProgressBarElement.Children[3]).Shadow =
new
ShadowSettings(
new
Point(1, 1), Color.Black);
Code that works for RadWaitingBar:
this
.DownloadedRowsWaitingBar.ShowText =
false
;
TextPrimitive textElement_wb =
new
TextPrimitive();
textElement_wb.Alignment = ContentAlignment.MiddleCenter;
textElement_wb.ZIndex = 100;
textElement_wb.Shadow =
new
Telerik.WinControls.Paint.ShadowSettings(
new
Point(1, 1), Color.Black);
this
.DownloadedRowsWaitingBar.WaitingBarElement.Children.Add(textElement_wb);