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

            base.Remove(view);
        }
Beispiel #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);
            }
        }
Beispiel #3
0
        public override void Remove(View view)
        {
            if (_content != null)
            {
                TypedNativeView.RemoveView(_content);
                _content = null;
            }

            base.Remove(view);
        }
Beispiel #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);
            }
        }