Esempio n. 1
0
        public override void Remove(View view)
        {
            TypedNativeView.RemoveView(_view);
            _view = null;

            base.Remove(view);
        }
Esempio n. 2
0
        public void Remove(IView child)
        {
            _ = TypedNativeView ?? throw new InvalidOperationException($"{nameof(TypedNativeView)} should have been set by base class.");
            _ = VirtualView ?? throw new InvalidOperationException($"{nameof(VirtualView)} should have been set by base class.");

            if (child?.Handler?.NativeView is View view)
            {
                TypedNativeView.RemoveView(view);
            }
        }
Esempio n. 3
0
        public override void Remove(View view)
        {
            if (_content != null)
            {
                TypedNativeView.RemoveView(_content);
                _content = null;
            }

            base.Remove(view);
        }
Esempio n. 4
0
        public override void SetView(View view)
        {
            base.SetView(view);

            var newContent = VirtualView?.View?.ToView();
            if (_content == null || newContent != _content)
            {
                if (_content != null)
                    TypedNativeView.RemoveView(_content);

                _content = newContent;

                if (_content != null)
                    TypedNativeView.AddView(_content);
            }
        }