/// <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(); };
        }
Exemple #2
0
        /// <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(); };
        }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dximage"></param>
 public override void SetBackBuffer(DXImageSource dximage)
 {
     dximage.SetBackBuffer(RenderTarget);
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dximage"></param>
 public abstract void SetBackBuffer(DXImageSource dximage);
		public override void SetBackBuffer(DXImageSource dximage) { dximage.SetBackBuffer(RenderTarget); }