Exemplo n.º 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(); };
        }
Exemplo n.º 2
0
 public abstract void SetBackBuffer(DXImageSource dximage);