Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }