Пример #1
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _automationPropertiesProvider = new AutomationPropertiesProvider(this);
            _effectControlProvider        = new EffectControlProvider(this);

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

            Initialize();
        }
Пример #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);
 }
Пример #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);
 }
Пример #6
0
 public FrameRenderer() : base(Forms.Context)
 {
     _gestureManager        = new GestureManager(this);
     _effectControlProvider = new EffectControlProvider(this);
 }