public VisualElementRenderer(IVisualElementRenderer renderer) { _renderer = renderer; _renderer.ElementPropertyChanged += OnElementPropertyChanged; _renderer.ElementChanged += OnElementChanged; _automationPropertiesProvider = new AutomationPropertiesProvider(_renderer); _effectControlProvider = new EffectControlProvider(_renderer?.View); }
void Initialize() { _automationPropertiesProvider = new FastRenderers.AutomationPropertiesProvider(this); _backgroundTracker = new BorderBackgroundManager(this); SoundEffectsEnabled = false; OnFocusChangeListener = this; SetOnCheckedChangeListener(this); Tag = this; }
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; }