public DXElement() { base.SnapsToDevicePixels = true; renderTimer = new Stopwatch(); Surface = new DXImageSource(); Surface.IsFrontBufferAvailableChanged += delegate { UpdateReallyLoopRendering(); if (!IsReallyLoopRendering && Surface.IsFrontBufferAvailable) { Render(); } }; IsVisibleChanged += delegate { UpdateReallyLoopRendering(); }; }
public override void SetBackBuffer(DXImageSource dximage) => dximage.SetBackBuffer(RenderTarget);