Closed JKennedy24 closed 8 years ago
View: <circleImage:CircleImage Grid.Row="0" Source="{Binding ProfilePicture}" HorizontalOptions="Center" VerticalOptions="Center"/>
<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
Actually it does, this could be down to a different issue
was infact down to this Xamarin.Forms Bug issue
View:
<circleImage:CircleImage Grid.Row="0" Source="{Binding ProfilePicture}" HorizontalOptions="Center" VerticalOptions="Center"/>
VM:
Image does not display on UWP