Ejemplo n.º 1
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _accessibilityProvider = new AccessibilityProvider(this);
            _effectControlProvider = new EffectControlProvider(this);
            _textColorSwitcher     = new Lazy <TextColorSwitcher>(() => new TextColorSwitcher(TextColors));

            Initialize();
        }
 public VisualElementRenderer(IVisualElementRenderer renderer)
 {
     _renderer = renderer;
     _renderer.ElementPropertyChanged += OnElementPropertyChanged;
     _renderer.ElementChanged         += OnElementChanged;
     _gestureManager        = new GestureManager(_renderer);
     _accessibilityProvider = new AccessibilityProvider(_renderer);
     _effectControlProvider = new EffectControlProvider(_renderer?.View);
 }