windows phone 7 - Binding image based on database id -


i'm using sqlite , have table contains table fields: id , name

in project have folder graphics/pictures , there pictures named like: 1.png, 2.png etc.

i save records observablecollection , set source listbox.

is there chance bind photos each item on list based on id table , name of picture in folder?

i have tried smth source="graphic/pictures/{binding id}.png seems bad way.

i not sure if works (and not able try right now) use stringformat (http://msdn.microsoft.com/en-us/library/system.windows.data.bindingbase.stringformat.aspx) or converter (http://msdn.microsoft.com/en-us/library/system.windows.data.binding.converter.aspx) returns full path


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -