40
How To Change Image Column Value in XamGrid
posted

Hi All,

I am Working on XamGrid. I have a XamComboEditor column in XamGrid. I have column for image also. 

And image is based on XamComboEditor while binding image with default value of XamComboEditor its working fine. But what i want is when user select any value from XamComboEditor it should change image also.

Here is My Code

<ig:TemplateColumn Key="PetProperties" MinimumWidth="150" HeaderText="Pet Properties" >
<ig:TemplateColumn.ItemTemplate>
<DataTemplate>
<ig:XamComboEditor x:Name="cmbBuildingUnit" ItemsSource="{Binding Path=ListOFItem}" SelectedValue="{Binding OptionToDisplay , Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Type" DisplayMemberPath="Type" EmptyText="Select ..." MinWidth="100" Width="{Binding RelativeSource={RelativeSource Self}, Path=Width}" Height="30" SelectionChanged="cmbBuildingUnit_SelectionChanged"/>
</DataTemplate>
</ig:TemplateColumn.ItemTemplate>
</ig:TemplateColumn>
<!--Images-->
<ig:TemplateColumn Key="PropertyICon" HeaderText="Properties" Width="110">
<ig:TemplateColumn.ItemTemplate>
<DataTemplate>
<StackPanel Name="testing">
<Image Name="imgPropertyIcon" Width="100" Height="30" Source="{Binding PropertyICon.ImageList}" ></Image>
</StackPanel>
</DataTemplate>

</ig:TemplateColumn.ItemTemplate>
</ig:TemplateColumn>

please look into Screen i have changed the drop down value in second screen and image still remain same.

Please Help me!!

Thank You