jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

ImageCircle Does not display images from ImageSource on UWP #276

Closed JKennedy24 closed 8 years ago

JKennedy24 commented 8 years ago

View:
<circleImage:CircleImage Grid.Row="0" Source="{Binding ProfilePicture}" HorizontalOptions="Center" VerticalOptions="Center"/>

VM:

      private ImageSource _profilePicture;
        public ImageSource ProfilePicture
        {
            get
            {
                if (_profilePicture == null)
                {
                    if (User != null)
                    {
                        if (User.ProfilePicture != null)
                        {
                            _profilePicture = ImageSource.FromStream(() => new MemoryStream(User.ProfilePicture));
                        }
                        else
                        {
                            _profilePicture = ImageSource.FromFile(Helpers.Styling.StylingLookup.GetImagePath("DefaultProfilePicture.jpg"));
                        }

                    }
                }
                return _profilePicture;
            }
            set { _profilePicture = value; }
        }

Image does not display on UWP

JKennedy24 commented 8 years ago

Actually it does, this could be down to a different issue

JKennedy24 commented 8 years ago

was infact down to this Xamarin.Forms Bug issue