Created
February 1, 2016 21:33
-
-
Save QiMata/f3972d3b6c0781cc2190 to your computer and use it in GitHub Desktop.
The iOS renderer for ContentViewRoundedCorners control.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ContentViewRoundedCornersRenderer : VisualElementRenderer<ContentView> | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<ContentView> e) | |
{ | |
base.OnElementChanged(e); | |
if (e.OldElement != null) | |
{ | |
return; | |
} | |
Layer.CornerRadius = ((ContentViewRoundedCorners) Element).CornerRadius; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment