Partager via


Windows Phone Programming

Warning

Windows Phone applications and games use the Silverlight Application Security Model. Windows phone code—called Transparent code—is unable to call security critical libraries, types, and methods. A majority of security critical methods and types are in the System.IO namespace. In the Silverlight or .NET Framework libraries supported in the XNA Framework, security critical methods can be identified by the [SecurityCriticalAttribute] attribute. Although these methods will compile, they throw a MethodAccessException at runtime. Windows and Xbox 360 games do not use the Silverlight Application Security Model, and are not restricted as described above. Security critical code is permitted on Windows and Xbox 360 platforms.

Game Programming Topics in the Windows Phone Documentation

  • The Silverlight and XNA Frameworks for Windows Phone
    Describes what is supported when using the XNA Framework from a Windows Phone application, and which Silverlight namespaces are not supported in a Windows Phone Game.
  • Execution Model Overview for Windows Phone
    Under the Windows Phone execution model, applications are activated and deactivated dynamically when a user navigates away from the application. This document describes how to persist data correctly for a windows phone application when the application is activated or deactivated.
  • Execution Model Best Practices for Windows Phone
    Windows Phone applications are terminated when the user navigates away from them. This topic highlights some best practices for handling execution model events.

Windows Phone Programming with XNA Game Studio