BindableProperty.Create is no longer supported and deprecated

Emixam23Emixam23 USMember ✭✭✭

Hi,

I got this warning when I tried to bind my customMap propreties object..

public class CustomMap : Map
{
    public static readonly BindableProperty RouteCoordinatesProperty =
    BindableProperty.Create<CustomMap, List<Position>>(
        p => p.RouteCoordinates, new List<Position>());

    public List<Position> RouteCoordinates
    {
        get { return (List<Position>)GetValue(RouteCoordinatesProperty); }
        set { SetValue(RouteCoordinatesProperty, value); }
    }

    public CustomMap()
    {
        RouteCoordinates = new List<Position>();
    }
}

The problem is that I can't find on the web the way to bind my custom map with the MVVM architecture..
(Why don't use just a ViewController?)
Because it doesn't update/refresh de map...

Sign In or Register to comment.