Example #1
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _automationPropertiesProvider = new AutomationPropertiesProvider(this);
            _effectControlProvider        = new EffectControlProvider(this);

            Initialize();
        }
Example #2
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _accessibilityProvider = new AccessibilityProvider(this);
            _effectControlProvider = new EffectControlProvider(this);
            _textColorSwitcher     = new Lazy <TextColorSwitcher>(() => new TextColorSwitcher(TextColors));

            Initialize();
        }
Example #3
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _automationPropertiesProvider = new AutomationPropertiesProvider(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);
 }
Example #5
0
 public VisualElementRenderer(IVisualElementRenderer renderer)
 {
     _renderer = renderer;
     _renderer.ElementPropertyChanged += OnElementPropertyChanged;
     _renderer.ElementChanged         += OnElementChanged;
     _gestureManager = new GestureManager(_renderer);
     _automatiomPropertiesProvider = new AutomationPropertiesProvider(_renderer);
     _effectControlProvider        = new EffectControlProvider(_renderer?.View);
 }
Example #6
0
 public FrameRenderer() : base(Forms.Context)
 {
     _gestureManager        = new GestureManager(this);
     _effectControlProvider = new EffectControlProvider(this);
 }