Exemple #1
0
        /// <summary/>
        protected void VerifyWithinContext()
        {
            DispatcherOperationCallback callback =
                delegate(object foo)
            {
                // WaitForCompleteRender seems to be bogus!  The real saviour is ApplicationIdle...
                Photographer.WaitForCompleteRender();
                Verify();
                return(null);
            };

            Invoke(DispatcherPriority.ApplicationIdle, callback, null);
        }
Exemple #2
0
        /// <summary/>
        protected RenderingWindow(Variation v)
        {
            variation    = v;
            photographer = new Photographer();

            RenderingTest.Invoke(DispatcherPriority.Normal, CreateWindow, null);

            // If the window position is not valid, that means the system placed it somewhere on the primary display.
            // (0,0) will get us the primary display.
            Point windowPosition = v.IsWindowPositionValid ? v.WindowPosition : new Point(0, 0);

            ColorOperations.DiscoverBitDepth(windowPosition);

            if (v.RenderingMode != null)
            {
                RenderingTest.Invoke(DispatcherPriority.Normal, SetRenderingMode, v.RenderingMode);
            }
        }