Good evening, I'm currently trying to find a way to replace standard text info in fields for several static images. Basically instead of the databind calling for a few canned texts such as "complete, stopped, started" etc. I have an image that I would like to appear, for each instance. I've never attempted images in fields before so this is a new process and I'm having trouble. I thought it would be a similar venture as is binding text but it's proven otherwise. Below is some sample code I'm using for the column in question. Please respond with anything you might deem helpful, thank you all.
<igDP:Field Name="ResultsStatus" Label="Results Status">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.CellValuePresenterStyle>
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<!--<Image x:Name="image" Width="20" Height="20" />-->
<local:ProgressControl x:Name="myProgressBar" Height="20" Width="20" />
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding Path=DataItem.ResultsStatus}" Value="Complete" >
<Setter TargetName="myProgressBar" Property="Source" Value="Images\circle_16x16.png"/>
<!--<Setter TargetName="image" Property="Source" Value="Images\circle_16x16.png"/>-->
</DataTrigger>
<DataTrigger Binding="{Binding Path=DataItem.ResultsStatus}" Value="Submitted" >
<Setter TargetName="image" Property="Source" Value="Images\print_16.png"/>
<DataTrigger Binding="{Binding Path=DataItem.ResultsStatus}" Value="Ready-to-Run">
<Setter TargetName="image" Property="Source" Value="Images\export_16.png"/>
<DataTrigger Binding="{Binding Path=DataItem.ResultsStatus}" Value="Running">
<Setter TargetName="image" Property="Source" Value="Images\find_16.png"/>
<DataTrigger Binding="{Binding Path=DataItem.ResultsStatus}" Value="Terminated">
<Setter TargetName="image" Property="Source" Value="Images\failed_32.png"/>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.CellValuePresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
Hello,
This code looks OK, expect that you have to uncomment the image element. Isn't this working ? Do you have any exceptions in the Output window?