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

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

            Initialize();
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 6
0
 public FrameRenderer() : base(Forms.Context)
 {
     _gestureManager        = new GestureManager(this);
     _effectControlProvider = new EffectControlProvider(this);
 }