DrawEventArgs GraphicsDevice Missing
I have an application written开发者_StackOverflow社区 in c#, .NET 4 & silverlight 5 & XNA Frameworks, in VS 2010/Windows7pro. When trying to use the System.Windows.Control.DrawEventArgs class to draw a scene (scene.Draw( e.GraphicsDevice)) there should be an GraphicsDevice object available but there is not.
Have I missed something?
You can find the answer here which solved the same problem of mine.
from David Catuhe's blog
The device is no longer handled by the DrawEventArgs class. It is now available on GraphicsDeviceManager.Current.GraphicsDevice.
精彩评论