Alxx
Alxx

Reputation: 65

Change GridViewItem background color when loading

I have a GridView with UserControl as item. When I'm scrolling, the UserControl are loading, the background in my UserControl is tranparent, but when its loading, the color of the background is a dark gray.

Is it possible to change the "loading" color of the background?

Upvotes: 1

Views: 176

Answers (1)

Jerry Nixon
Jerry Nixon

Reputation: 31831

Pretty limited information there.

Okay, so your user control could default to a loading color and when it detects the load is complete it changes its own background color to the final color.

Two, you could uses phases to control the rendering order of an item in your list. Making phase 0 your loading color and phase X (whatever is last) your final color. Complex? Yes, but would certainly work.

You would accomplish it using IncrementalUpdate. More here.

Because I don't know more how you might detect that an item is loaded, I can only hope that those first two suggestions will help. I certainly hope they do.

// best of luck

Upvotes: 2

Related Questions