Exemple #1
0
        public VisualElementRenderer(IVisualElementRenderer renderer)
        {
            _renderer = renderer;
            _renderer.ElementPropertyChanged += OnElementPropertyChanged;
            _renderer.ElementChanged         += OnElementChanged;
            _automationPropertiesProvider     = new AutomationPropertiesProvider(_renderer);

            _effectControlProvider = new EffectControlProvider(_renderer?.View);
        }
Exemple #2
0
        void Initialize()
        {
            _automationPropertiesProvider = new FastRenderers.AutomationPropertiesProvider(this);
            _backgroundTracker            = new BorderBackgroundManager(this);

            SoundEffectsEnabled   = false;
            OnFocusChangeListener = this;
            SetOnCheckedChangeListener(this);

            Tag = this;
        }
Exemple #3
0
        public ItemsViewRenderer(Context context) : base(
                new ContextThemeWrapper(context, Microsoft.Maui.Controls.Compatibility.Resource.Style.collectionViewTheme), null,
                Microsoft.Maui.Controls.Compatibility.Resource.Attribute.collectionViewStyle)
        {
            _automationPropertiesProvider = new FastRenderers.AutomationPropertiesProvider(this);
            _effectControlProvider        = new EffectControlProvider(this);

            _emptyCollectionObserver   = new DataChangeObserver(UpdateEmptyViewVisibility);
            _itemsUpdateScrollObserver = new DataChangeObserver(AdjustScrollForItemUpdate);

            VerticalScrollBarEnabled   = false;
            HorizontalScrollBarEnabled = false;
        }