﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Fri, 19 Sep 2014 09:23:09 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that the sample helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Fri, 19 Sep 2014 07:16:46 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;tested on Android device. Works.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Tue, 16 Sep 2014 01:18:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I uploaded my sample project in OneDrive. Please have the sample downloaded in &lt;a href="https://onedrive.live.com/download?resid=A29317908CEA783A%21413" target="_blank"&gt;here&lt;/a&gt;; and have it evaluated on your end and let us know whether it helps or not. For your information, I'm using Crosslight 2 Update 4.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Mon, 15 Sep 2014 17:44:55 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Any news here?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Fri, 12 Sep 2014 08:22:33 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;I wonder how you test these samples.&amp;nbsp;I did the same thing you described in your last post. I tested on two devices (Samsung Galaxy Phone and Tablet). On each device I get the same results. Start the sample app, wait for 5, 10, 15 seconds and nothing happens. No image changes in the list. Then I rotated the devices from portrait to landscape. With the rotation there seems to be a refresh and there you go. The image changes.&lt;/p&gt;&lt;p&gt;Similar results on iOS.&lt;/p&gt;&lt;p&gt;Please, check this again.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Fri, 12 Sep 2014 06:39:25 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a project by using &lt;em&gt;Master Detail&lt;/em&gt; project template; and add following code in order to simulate the scenario: to change some images of the list items using timer.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;IViewService viewService = this.GetService&amp;lt;IViewService&amp;gt;();
            
if (viewService != null)
{
    viewService.RunOnBackgroundThread(() =&amp;gt;
    {
        Item firstItem = this.Items.FirstOrDefault();
        firstItem.ThumbnailImage = null;
    }, 5000);
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The above code will set the ThumbnailImage to null for the first item of ListView after 5 second.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In order to update the image, simply call OnDataChanged(object) method after set the changes.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;if (viewService != null)
{
    viewService.RunOnBackgroundThread(() =&amp;gt;
    {
        Item firstItem = this.Items.FirstOrDefault();
        firstItem.ThumbnailImage = null;
        this.OnDataChanged(firstItem);
    }, 
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Note: the above changes are made in the constructor of ItemListViewModel of Core project in the project created by using Master Detail project template.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update Image In ListView Cell Via DataBinding</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Update-Image-In-ListView-Cell-Via-DataBinding/</link><pubDate>Thu, 11 Sep 2014 07:53:49 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I have a question about images in a list view cell. I have a simple list and I use one of the predefined templates to display a list item with an image and two texts. Initially displaying the list works fine.&lt;/p&gt;&lt;p&gt;The displayed image and the texts of the list items are set via data binding. In the view model of the list view I have a timer and under certain conditions I want to change some images of the list items matching these conditions. To do this I call the setter of the image property, set a new image&amp;nbsp;and do a property changed, but the images don't change within the list view. Normally, after doing property change there is call of the getter of the belonging property. This is not the case.&lt;/p&gt;&lt;p&gt;So, isn't it possible to update the image of a list view item or am I doing something wrong.&lt;/p&gt;&lt;p&gt;As always, thanks for your support.&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>