Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

FontImageSource not supported (at least) on UWP #89

Open
MitchBomcanhao opened this issue Aug 28, 2019 · 0 comments
Open

FontImageSource not supported (at least) on UWP #89

MitchBomcanhao opened this issue Aug 28, 2019 · 0 comments

Comments

@MitchBomcanhao
Copy link

Bug Information

I've not been able to check iOS and Android, but they might have similar issues.

Version Number of Plugin: 3.1.1.1-beta
Device Tested On: UWP, unknown on other platforms.

Steps to reproduce the Behavior

add a font image source as the source image for your control, something like this:

Expected Behavior

the imageCircle control will show the fontImageSource

Actual Behavior

Nothing is displayed

Code snippet

the UWP ImageCircleRenderer is missing a clause for FontImageSource, something like the code below enables it to work:

                else if (file is FontImageSource)
                {
                    var handler = new FontImageSourceHandler();
                    var imageSource = await handler.LoadImageAsync(file);

                    if (imageSource != null)
                    {
                        Control.Fill = imageBrush = new ImageBrush
                        {
                            ImageSource = imageSource,
                            Stretch = Stretch.Uniform
                        };
                    }
                    return;
                }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant