Hello,
now it's more clear for me. In such case the image and the vertical list can be considered independently.
Part A: Controlling the list:
Depending on the value you will need to scroll the list and focus the corresponding item. For this purpose please see the sections Scroll the list items and Select an item within the list. Assuming the value corresponds to the number of the item you intend to highlight in the list, then following could be the code to control the list:
var int32 itemNo = Your_Value;
Your_List.SelectedItem = itemNo;
Your_List.EnsureVisible( itemNo, true, null, null );
Part B: Controlling the displayed image:
The simplest would be to put all images within a single multi-frame bitmap resource. (see also Configure a multi-frame bitmap resource). Then you can display the desired image by simply specifying its frame number within the bitmap. Ideally the order of the frames in the bitmap corresponds to the item numbers. In this manner if you have selected item #3, you also have to select the bitmap frame number 3. To select which frame number is displayed, use the property FrameNumber of the Image view. The corresponding code could look like this:
var int32 itemNo = Your_Value;
Your_Image_View.FrameNumber = itemNo;
If you don't want to use the multi-frame bitmaps, you will need to store every image as an individual bitmap resource and then depending on the selected list item select the right resource. For example:
var int32 itemNo = Your_Value;
switch ( itemNo )
{
case 0 : Your_Image_View.Bitmap = Your_Unit::BitmapApple;
case 1 : Your_Image_View.Bitmap = Your_Unit::BitmapBanana;
[...]
}
I hope it helps you further.
Best regards
Paul Banach