Example #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(); };
        }
Example #2
0
 public abstract void SetBackBuffer(DXImageSource dximage);