Answer the question
In order to leave comments, you need to log in
How to bind different images in the List view depending on the content of the element?
Subject. There is a sheet that is bound through the {Binding param} model. How can I display an image from assets in image in the same element, depending on what I get as a result from param?
Answer the question
In order to leave comments, you need to log in
The code wouldn't hurt.
You can do this at the model level, then when assembling param, you can immediately create the image you need.
You can write a converter that will parse param and return different pictures for different cases.
Google towards ItemTemplateSelector. It will be possible to write any conditions for each element of the list.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question