Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. There are 2 ways:
  2. 1- Frame and Image
  3. <Frame CornerRadius="10" Margin="0" Padding="0" IsClippedToBounds="True" HasShadow="false">
  4. <Image Source="{Binding Picture}" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
  5. </Frame>
  6.  
  7. 2- FFImageLoading
  8. <ffimageloading:CachedImage HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
  9. Aspect="AspectFill" DownsampleToViewSize="true" Source = "{Binding Picture}">
  10. <ffimageloading:CachedImage.Transformations >
  11. <fftransformations:CornersTransformation
  12. CornersTransformType="AllRounded"
  13. BottomLeftCornerSize="10" TopLeftCornerSize="10"
  14. TopRightCornerSize="10" BottomRightCornerSize="10"/>
  15. </ffimageloading:CachedImage.Transformations>
  16. </ffimageloading:CachedImage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement