1

My .xaml like this

<ListBox.ItemTemplate> 
    <DataTemplate>
        <Image Width="90" Height="90" Source="{Binding ImgUri}" Name="codeimage"/>
    </DataTemplate>
</ListBox.ItemTemplate>

I've already convert a .gif to writeableBitmap. But have no idea how to bind writeableBitmap with listbox.

Can anyone give my some hint please?

Thanks so much

ZombieSheep
  • 29,603
  • 12
  • 67
  • 114

1 Answers1

2

If you're binding the path of an image to a Uri which is a gif you'll have to apply a converter to manage the conversion to a supported format (png of jpg).

Have a look at this answer to a similar question.

Community
  • 1
  • 1
Matt Lacey
  • 65,560
  • 11
  • 91
  • 143