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