This is a migrated thread and some comments may be shown as answers.

Remove flash effect

2 Answers 123 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Ivano
Top achievements
Rank 1
Ivano asked on 24 Nov 2010, 02:38 PM
Hi

when using BusyIndicator on fast running operations you get a flash effect: busyIndicator appears and disappears in a second flashing the user interface. As don't know in advance how long the operation will last, I'm trying to attenuate the effect setting the OverlayStyle completely transparent as follows:

RadBusyIndicator busyIndicator = new RadBusyIndicator();
// make it trasparent to avoid flashing on fast operations
Setter opacitySetter = new Setter(Rectangle.OpacityProperty, 0.0);
Style overlayStyle = new Style();
overlayStyle.Setters.Add(opacitySetter);
busyIndicator.OverlayStyle = overlayStyle;
// add to layoutRoot children
busyIndicator.SetValue(Grid.RowProperty, 0);
busyIndicator.SetValue(Grid.RowSpanProperty, 3);
layoutRoot.Children.Add(busyIndicator);

I seems that setting OverlayStyle in code has no effect. 
What's wrong in the code
A better solution could delaying the control appeareance with an animation effect; how can I do that?

Sincerely
Ivano

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 26 Nov 2010, 12:26 PM
Hi Ivano,

Thank you for contacting us.

You can increase the time after setting the IsBusy=True. Please refer to this online demo: http://demos.telerik.com/wpf/?BusyIndicator/FirstLook where it is illustrated how to use the RadBusyIndicator correctly.

Hope this information helps. If you have further questions please let us know.

Kind regards,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Ivano
Top achievements
Rank 1
answered on 26 Nov 2010, 04:19 PM
Hi

thanks for the suggestion (the demo is Configurator not FirstLook); it works great.

Sincerely
Ivano
Tags
BusyIndicator
Asked by
Ivano
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Ivano
Top achievements
Rank 1
Share this question
or