public ButtonRenderer() : base(Forms.Context) { _automationPropertiesProvider = new AutomationPropertiesProvider(this); _effectControlProvider = new EffectControlProvider(this); Initialize(); }
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); _automatiomPropertiesProvider = new AutomationPropertiesProvider(_renderer); _effectControlProvider = new EffectControlProvider(_renderer?.View); }
public ButtonRenderer(Context context) : base(context) { _automationPropertiesProvider = new AutomationPropertiesProvider(this); Initialize(); }