Hi,
Yes i know i upgraded to SL 5, Have a quick question on this that cant we apply color converter instead of applying more logic??
I am trying to place one converter and calling from xaml using rowstyle selectore, surprised it is not working.
public class GridRowClientStatusColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter,
CultureInfo culture)
{
if (System.Convert.ToBoolean(value))
{
//return "#C8DAC4"; // Green Color when Client Status is "EXISTING" & Client is not Valid
return "#F8B79A"; // Orange Color when Client Status is "EXISTING" & Client is not Valid
}
else
{
return parameter;
}
}
public object ConvertBack(object value, Type targetType, object parameter,
CultureInfo culture)
{
/* No Implementation for convert back as its one way binding */
return null;
}
}
}