I have a valueconverter attached to an unbound column in a xamwebgrid. When i debug the valueconverter, the UnboundColumnDataContext.RowData and Value are both nothing. Here is the Xaml. Maybe I have not set this up correctly:
<ig:UnboundColumn Key="Attachment" HeaderText="" IsSummable="False" ValueConverter="{StaticResource TransactionAttachment}"> <ig:UnboundColumn.ItemTemplate> <DataTemplate> <Image Stretch="Fill" Width="16" Height="16" Source="{Binding RowData}" /> </DataTemplate> </ig:UnboundColumn.ItemTemplate></ig:UnboundColumn>
Do you have a sample that i could look at?
I'm unable to reproduce what you're seeing.
-SteveZ
Yes it is being called. I stepped through it. When I examine the value parameter, it is of type UnboundColumnDataContext. The key property is set correctly ("Attachment" - the key for the column), but both the RowData and Value properties are nothing.
Hi,
Perhaps your TransactionAttachment resource isn't being found?
Is your ValueConverter's Convert method being called?