Skip to content

Instantly share code, notes, and snippets.

@quinnzipse
Last active July 2, 2019 00:13
Show Gist options
  • Save quinnzipse/5d297bbc768bf041dc215ed5ce455ff5 to your computer and use it in GitHub Desktop.
Save quinnzipse/5d297bbc768bf041dc215ed5ce455ff5 to your computer and use it in GitHub Desktop.
UriImageSource
var imageSource = new UriImageSource();
imageSource.Uri = new Uri("https://images.pexels.com/photos/46710/pexels-photo-46710.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
pictureTime.Source = imageSource;
<Image x:Name="pictureTime" VerticalOptions="Center" HeightRequest="64" />
@quinnzipse
Copy link
Author

https://docs.microsoft.com/en-us/dotnet/api/system.uri?view=netframework-4.8

Here's the documentation behind these two lines of code for further review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment