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)); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { DialogModel.DialogStatus status = (DialogModel.DialogStatus)value; return(status.String); }