public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { QuoteGridLine.QuotePair qp = (QuoteGridLine.QuotePair)value; System.Windows.Media.Brush brush = qp._newvalue > qp._oldvalue ? System.Windows.Media.Brushes.Green : (qp._newvalue < qp._oldvalue ? System.Windows.Media.Brushes.Red : System.Windows.Media.Brushes.White); return(brush); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { QuoteGridLine.QuotePair qp = (QuoteGridLine.QuotePair)value; return(qp._newvalue); }