H
H
Horoko2015-12-15 11:33:37
.NET
Horoko, 2015-12-15 11:33:37

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

2 answer(s)
M
MonkAlex, 2015-12-15
@Horoko

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.

D
dmitry_dvm, 2015-12-15
@dmitry_dvm

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 question

Ask a Question

731 491 924 answers to any question