locked
Rectangle fill with ImageBrush briefly flickers full screen

    Question

  • Building a Universal app in C# / Xaml.

    I have a list view with each item containing text etc and a rectangle which I fill with an ImageBrush -> BitmapImage.

    The issue is that occasionally the Image will flash full screen when scrolling (seems to render briefly then clip and resize to the bounds of the rectangle.

    What's the best way to get around this? I've tried setting the rectangles Opacity to 0 and then making it visible with the ImageBrushes ImageOpened event but this is fired when the image is ready to be rendered - not when it has already rendered on screen.

    Tuesday, March 10, 2015 11:30 AM

All replies

  • Please share simple XAML and code behind that illustrates this problem and we can take a look for you.

    Bret Bentzinger (MSFT) @awehellyeah

    Tuesday, March 10, 2015 4:08 PM
    Moderator
  • HI Brad,

    Please use template binding for the rectangle fill. please put your xaml code here so that we can help[ solving this.


    Purushothama V S

    Wednesday, March 11, 2015 1:26 AM