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