Skip to content

Instantly share code, notes, and snippets.

@InnovativeTechies
Created July 12, 2020 07:46
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 InnovativeTechies/1a5ad3a13701243937d23eb666b662ee to your computer and use it in GitHub Desktop.
Save InnovativeTechies/1a5ad3a13701243937d23eb666b662ee to your computer and use it in GitHub Desktop.
public static readonly BindableProperty ChipTextProperty = BindableProperty.Create("ChipText", typeof(string), typeof(ChipsControl), default(string),defaultBindingMode:BindingMode.TwoWay,propertyChanged:ChipTextPropertyChanged);
private static void ChipTextPropertyChanged(BindableObject bindable, object oldValue, object newValue)
{
var control = (ChipsControl)bindable;
control.ChipText = newValue.ToString();
}
public string ChipText
{
get { return (string)GetValue(ChipTextProperty); }
set { SetValue(ChipTextProperty, value); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment