Hello,
I am looking to achieve something like this
<igDP:XamDataGrid.FieldLayoutSettings>
basically, for each row we have our setting to display like BG/FG colors, Font style etc. so instead of writing three/four converters which get applied for one row I was thinking if we could achieve something like above where we assign styles based on data in the row.
Please help.
It seems to compile and everything, it just doesn't the break point in the converter.
public object Convert(object value, Type targetType,object parameter, CultureInfo culture){
if (value == null) return Binding.DoNothing;
TransactionViewModel model = value as TransactionViewModel;
if (model==null)return Binding.DoNothing;
Style style = new Style();
style.Setters.Add(
new Setter(DataRecordCellArea.BackgroundProperty, Brushes
.Red ));
return style;
}
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.