Skip to content

Instantly share code, notes, and snippets.

@QiMata
Created February 1, 2016 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QiMata/16566ce42f146a249a22 to your computer and use it in GitHub Desktop.
Save QiMata/16566ce42f146a249a22 to your computer and use it in GitHub Desktop.
The shared control for creating the rounded corners
public class ContentViewRoundedCorners : ContentView
{
public static readonly BindableProperty CornerRaidusProperty =
BindableProperty.Create<ContentViewRoundedCorners, float>(x => x.CornerRadius, 0);
public float CornerRadius
{
get { return (float) GetValue(CornerRaidusProperty); }
set { SetValue(CornerRaidusProperty, value); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment