Remove flash effect

3 posts, 1 answers
  1. Ivano
    Ivano avatar
    39 posts
    Member since:
    Feb 2009

    Posted 24 Nov 2010 Link to this post

    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. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 26 Nov 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ivano
    Ivano avatar
    39 posts
    Member since:
    Feb 2009

    Posted 26 Nov 2010 Link to this post

    Hi

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

    Sincerely
    Ivano
Back to Top