Skip to content

Instantly share code, notes, and snippets.

@Sa1Gur
Created August 14, 2019 19:19
Show Gist options
  • Save Sa1Gur/9140da85b20de5712b06194a530c5ecf to your computer and use it in GitHub Desktop.
Save Sa1Gur/9140da85b20de5712b06194a530c5ecf to your computer and use it in GitHub Desktop.
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class NameAndRating : Grid
{
public NameAndRating()
{
InitializeComponent();
}
public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(NameAndRating), defaultBindingMode: BindingMode.TwoWay);
public string Name
{
get => (string)GetValue(NameProperty);
set => SetValue(NameProperty, value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment