protected override ShapeView CreateCircle() { var circle = new ShapeView() { ShapeType = ShapeType.Circle, WidthRequest = 16, HeightRequest = 16 }; circle.SetValue(ShapeView.ColorProperty, Color.FromRgb(193, 82, 216)); return(circle); }
protected override ShapeView CreateCircle() { var circle = new ShapeView() { ShapeType = ShapeType.Circle, WidthRequest = 16, HeightRequest = 16 }; circle.SetBinding(ShapeView.ColorProperty, new Binding("IsDone", BindingMode.OneWay, new PlaceToColorConverter())); return(circle); }