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:
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
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