Skip to content

Instantly share code, notes, and snippets.

@ufukhawk
Created October 6, 2019 07:38
Show Gist options
  • Save ufukhawk/e3492c7acb6adb7b7f3debbd55bd6215 to your computer and use it in GitHub Desktop.
Save ufukhawk/e3492c7acb6adb7b7f3debbd55bd6215 to your computer and use it in GitHub Desktop.
public class IconView : View
{
#region ForegroundProperty
public static readonly BindableProperty ForegroundProperty = BindableProperty.Create(nameof(Foreground), typeof(Color), typeof(IconView), default(Color));
public Color Foreground {
get {
return (Color)GetValue (ForegroundProperty);
}
set {
SetValue (ForegroundProperty, value);
}
}
#endregion
#region SourceProperty
public static readonly BindableProperty SourceProperty = BindableProperty.Create(nameof(Source), typeof(string), typeof(IconView), default(string));
public string Source {
get {
return (string)GetValue (SourceProperty);
}
set {
SetValue (SourceProperty, value);
}
}
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment