Beispiel #1
0
        private void RenderContent(ref SwapChainDrawingContext context)
        {
            var rootVisual = RootVisual;

            if (rootVisual != null)
            {
                RenderContent(rootVisual, ref context);
            }
        }
Beispiel #2
0
        private void RenderContent(Visual visual, ref SwapChainDrawingContext context)
        {
            if (visual.IsVisualVisible)
            {
                visual.RenderContent(ref context);

                foreach (var child in visual.VisualChildren)
                {
                    RenderContent(child, ref context);
                }
            }
        }
Beispiel #3
0
            public void OnDraw(ISwapChainDrawingContext context)
            {
                var ctx = new SwapChainDrawingContext(context);

                GetTarget()?.OnDraw(ref ctx);
            }
Beispiel #4
0
 private void OnDraw(ref SwapChainDrawingContext context)
 {
     Draw?.Invoke(this, EventArgs.Empty);
     RenderContent(ref context);
 }
Beispiel #5
0
 internal virtual void RenderContent(ref SwapChainDrawingContext context)
 {
     _renderableObject.Render();
 }