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