System.Windows.Interop.D3DImage.SetIsFrontBufferAvailable C# (CSharp) Method

SetIsFrontBufferAvailable() private method

The DispatcherOperation corresponding to the composition thread callback. If the back buffer version matches the current version, update the front buffer status.
private SetIsFrontBufferAvailable ( object isAvailableVersionPair ) : object
isAvailableVersionPair object
return object
        private object SetIsFrontBufferAvailable(object isAvailableVersionPair)
        {
            Pair pair = (Pair)isAvailableVersionPair;
            uint version = (uint)pair.Second;

            if (version == _version)
            {
                bool isFrontBufferAvailable = (bool)pair.First;
                SetValue(IsFrontBufferAvailablePropertyKey, isFrontBufferAvailable);
            }

            // ...just because DispatcherOperationCallback requires returning an object
            return null;
        }