Hello All,
I am having a value converter problem with the Infragistics 9.2 XamDataGrid. Please consider the following code:
public class ToolTipFromThreatTypeConverter : IValueConverter
{
public object Convert(
object value,
Type targetType,
object parameter,
System.Globalization.CultureInfo culture)
{
// "labelPresenter" is always non-null, as expected.
LabelPresenter labelPresenter = value as LabelPresenter;
// "field" is always null, which is not as expected.
Field field = labelPresenter.Field;
// ...
}
// public object ConvertBack( ...
}
I experience a similar problem in another converter when I cast "value" to "CellValuePresenter". The cast of "value" is non-null, but as soon as I try to drill down one level (e.g. labelPresenter.field above), I start gettig null values back.
Does anybody have any idea why these null values are coming back?
Thanks, Dave