Esempio n. 1
0
        public object Convert(object value, Type targetType,
                              object parameter, System.Globalization.CultureInfo culture)
        {
            DialogModel.DialogStatus status = (DialogModel.DialogStatus)value;
            Color color;

            if (status.Type == DialogModel.StatusType.Activity)
            {
                color = (Color)Application.Current.Resources["PhoneAccentColor"];
            }
            else
            {
                color = Color.FromArgb(255, 153, 153, 153);
            }


            return(new SolidColorBrush(color));
        }
Esempio n. 2
0
 public object Convert(object value, Type targetType,
                       object parameter, System.Globalization.CultureInfo culture)
 {
     DialogModel.DialogStatus status = (DialogModel.DialogStatus)value;
     return(status.String);
 }