예제 #1
0
        void UpdateOverlayContent()
        {
            var renderer = Platform.GetOrCreateRenderer(Specific.GetOverlayContent(_application));

            (renderer as LayoutRenderer)?.RegisterOnLayoutUpdated();
            Forms.BaseLayout.SetPartContent("elm.swallow.overlay", renderer?.NativeView);
        }
예제 #2
0
        void UpdateOverlayContent()
        {
            EvasObject nativeView = null;
            var        content    = Specific.GetOverlayContent(_application);

            if (content != null)
            {
                var renderer = Platform.GetOrCreateRenderer(content);
                (renderer as LayoutRenderer)?.RegisterOnLayoutUpdated();
                nativeView = renderer?.NativeView;
            }
            Forms.BaseLayout.SetPartContent("elm.swallow.overlay", nativeView);
        }