/// <summary> /// /// </summary> public DXElement() { base.SnapsToDevicePixels = true; m_renderTimer = new Stopwatch(); m_surface = new DXImageSource(); m_surface.IsFrontBufferAvailableChanged += delegate { UpdateReallyLoopRendering(); if (!m_isReallyLoopRendering && m_surface.IsFrontBufferAvailable) Render(); }; IsVisibleChanged += delegate { UpdateReallyLoopRendering(); }; }
/// <summary> /// /// </summary> public DXElement() { base.SnapsToDevicePixels = true; m_renderTimer = new Stopwatch(); m_surface = new DXImageSource(); m_surface.IsFrontBufferAvailableChanged += delegate { UpdateReallyLoopRendering(); if (!m_isReallyLoopRendering && m_surface.IsFrontBufferAvailable) { Render(); } }; IsVisibleChanged += delegate { UpdateReallyLoopRendering(); }; }
/// <summary> /// /// </summary> /// <param name="dximage"></param> public override void SetBackBuffer(DXImageSource dximage) { dximage.SetBackBuffer(RenderTarget); }
/// <summary> /// /// </summary> /// <param name="dximage"></param> public abstract void SetBackBuffer(DXImageSource dximage);
public override void SetBackBuffer(DXImageSource dximage) { dximage.SetBackBuffer(RenderTarget); }