public void ColorSelected(ColorPickerDialogDataTemplate dataTemplate)
 {
     if (dataTemplate.Confirmed)
     {
         MODEL.Account.color = UiUtils.ColorToHexString(dataTemplate.SelectedColor);
     }
 }
Esempio n. 2
0
 public object ConvertBack(object value, Type targetType, object parameter, string language)
 {
     if (value is SolidColorBrush b)
     {
         return(UiUtils.ColorToHexString(b.Color));
     }
     return("");
 }