示例#1
0
        public DXElement()
        {
            base.SnapsToDevicePixels = true;

            renderTimer = new Stopwatch();
            Surface     = new DXImageSource();
            Surface.IsFrontBufferAvailableChanged += delegate
            {
                UpdateReallyLoopRendering();
                if (!IsReallyLoopRendering && Surface.IsFrontBufferAvailable)
                {
                    Render();
                }
            };
            IsVisibleChanged += delegate { UpdateReallyLoopRendering(); };
        }
示例#2
0
 public override void SetBackBuffer(DXImageSource dximage) => dximage.SetBackBuffer(RenderTarget);