void RemoveCircleSurfaceItem(ICircleSurfaceItem item) { if (_circleSurfaceItems.TryGetValue(item, out var widget)) { ElmSharp.EvasObject obj = widget as ElmSharp.EvasObject; obj?.Unrealize(); _circleSurfaceItems.Remove(item); } }
void OnContent(bool obj) { if (_content != null) { if (_content is Xamarin.Forms.Platform.Tizen.Native.Box contentBox) { contentBox.LayoutUpdated -= OnContentLayoutUpdated; } Control.SetContent(null, true); _content.Unrealize(); _content = null; } if (Element.Content != null) { _content = Xamarin.Forms.Platform.Tizen.Platform.GetOrCreateRenderer(Element.Content).NativeView; if (_content is Xamarin.Forms.Platform.Tizen.Native.Box contentBox) { contentBox.LayoutUpdated += OnContentLayoutUpdated; } Control.SetContent(_content, true); UpdateContentSize(); } }