Example #1
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var convertedValue = value as EnumsModel.PrincessAvatar? ?? EnumsModel.PrincessAvatar.Ariel;

            return(ImageHelper.GetImageBrush(EnumToImage.GetAvatarBitmap(convertedValue)));
        }
 private Bitmap GetAvatarBitmap(EnumsModel.PrincessAvatar avatar)
 {
     return(EnumToImage.GetAvatarBitmap(avatar));
 }