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

            Initialize();
        }
示例#2
0
        public ButtonRenderer() : base(Forms.Context)
        {
            _automationPropertiesProvider = new AutomationPropertiesProvider(this);
            _effectControlProvider        = new EffectControlProvider(this);
            _textColorSwitcher            = new Lazy <TextColorSwitcher>(() => new TextColorSwitcher(TextColors));

            Initialize();
        }
示例#3
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);
 }
示例#4
0
        public ButtonRenderer(Context context) : base(context)
        {
            _automationPropertiesProvider = new AutomationPropertiesProvider(this);

            Initialize();
        }