Beispiel #1
0
        void UpdateNativeControl()
        {
            Performance.Start(out string reference);

            if (_disposed)
            {
                return;
            }

            if (_layer == null)
            {
#if !__MOBILE__
                Renderer.NativeView.WantsLayer = true;
#endif
                _layer = Renderer.NativeView.Layer;
#if __MOBILE__
                _isInteractive = Renderer.NativeView.UserInteractionEnabled;
#endif
            }

            OnUpdateNativeControl(_layer);

            NativeControlUpdated?.Invoke(this, EventArgs.Empty);
            Performance.Stop(reference);
        }
Beispiel #2
0
        void UpdateNativeControl()
        {
            if (_disposed)
            {
                return;
            }

            OnUpdateNativeControl();

            NativeControlUpdated?.Invoke(this, EventArgs.Empty);
        }