Skip to content

Instantly share code, notes, and snippets.

@bbenetskyy
Created December 31, 2021 08:59
Show Gist options
  • Save bbenetskyy/35c073173859a3e238c233ed66ebab67 to your computer and use it in GitHub Desktop.
Save bbenetskyy/35c073173859a3e238c233ed66ebab67 to your computer and use it in GitHub Desktop.
public static readonly BindableProperty NewXProperty = BindableProperty.Create(
propertyName: nameof(NewX),
returnType: typeof(double),
declaringType: typeof(DraggableView));
public double NewX
{
get => (double)GetValue(NewXProperty);
set => SetValue(NewXProperty, value);
}
public static readonly BindableProperty NewYProperty = BindableProperty.Create(
propertyName: nameof(NewY),
returnType: typeof(double),
declaringType: typeof(DraggableView));
public double NewY
{
get => (double)GetValue(NewYProperty);
set => SetValue(NewYProperty, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment