Exemplo n.º 1
0
        protected override void UpdateCapturedImage()
        {
            VisualElement ve;

            if ((ve = element as VisualElement) != null)
            {
                var nativeView   = Platform.GetRenderer(ve).NativeView;
                var skipChildren = !(ve is View && !(ve is Layout));
                if (nativeView != null)
                {
                    CapturedImage = XIVR.RenderAsPng(
                        nativeView.Window,
                        nativeView.Layer,
                        UIScreen.MainScreen.Scale,
                        skipChildren);
                }
            }
        }