Exemplo n.º 1
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            int count = ((ObservableCollection <UpcomingEventShortDTO>)value).Count;

            if (count > 0)
            {
                return(HexaToArgbConverter.GetColorFromHexa("#FF6F93BB"));
            }
            else
            {
                return(HexaToArgbConverter.GetColorFromHexa("#FF5C6875"));
            }
        }
Exemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            SolidColorBrush color;
            DateTime        date = ((DateTime)value).Date;

            if (date == DateTime.Now.Date)
            {
                color = HexaToArgbConverter.GetColorFromHexa("#FFC6C6C6");
            }
            else
            {
                color = new SolidColorBrush(Colors.Transparent);
            }
            return(color);
        }
Exemplo n.º 3
0
 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     return(HexaToArgbConverter.GetColorFromHexa("#FF5C6875"));
 }