12. Windows Phone 8 Programming APIs
WP8.0 Games DirectX/Direct 3D & C++
WP7.1,
WP8.0 .NET
WinRT APIs
WinRT
•
and Win32
WP7.1
XNA framework
+ C++
WP7.1 XNA & C#/VB
WP7.1 XAML & C#/VB
•
•
Direct3D or DirectX
+ C++
WP8.0 XAML & C#/VB
•
WP8.0 XAML & C#/VB with Direct3D Graphics
.NET API for
Windows
Phone
Windows
Phone
Runtime
Win32 &
COM
Managed
Managed &
Native
Native
13.
14. Managed Code
XAML UI
XAML
Visual Basic .NET
C#
-
Access .NET APIs and Windows Phone Runtime APIs
XAML & C#/VB
.NET API for
Windows
Phone
Windows
Phone
Runtime
Managed
Managed
15. Managed Code
XNA Games
XNA
Visual Basic .NET
-
C#
-
Access .NET 7.1 APIs, not Windows Phone 8 APIs
XNA & C#/VB (+XAML)
.NET API for
Windows
Phone 7.1
XNA Libraries
for Windows
Phone 7.1
Managed
17. XAML
XAML
Direct3D
Direct3D
C++
XAML & C#/VB.NET & C++
.NET API for
Windows
Phone
Windows
Phone
Runtime
Windows
Phone Runtime
(Direct3D)
Win32 &
COM
Managed
Managed
Native
Native
Visual Basic
C#
-
28. Supported operating systems
Windows 8 64-bit (x64) client versions
Hardware
8 GB of free disk space
4 GB of RAM (recommended)
64-bit (x64) motherboard
Windows Phone Emulator
Windows 8 Pro or higher (for Hyper-V) and
Second Level Address Translation (SLAT)
29. Second Level Address Translation (SLAT)
SLAT
(i3, i5, i7, i9)
SLAT
Download SysInternals/TechNet CoreInfo at
•
http://technet.microsoft.com/en-us/sysinternals/cc835722
Run "coreinfo -v"
If you have "*" next to "EPT" you should be good.
•
If you have a "-" next to EPT then you should start looking for a new computer :)
•
•
In Windows Phone 8, the .NET Compact Framework has been replaced by CoreCLR, which is the same .NET engine used on Windows 8. This delivers stability and high performance to your apps, so they can take advantage of multicore processing and improve battery life.
ManagedManaged apps use XAML to define the user interface and Visual Basic or C# as the coding language. Existing Windows Phone apps that were written using these techniques are fully compatible with Windows Phone 8. XAML-based apps have gained new features such as new controls and auto-scaling to high resolution. New managed APIs coming to Windows Phone 8 include a new map control powered by Nokia maps and a wallet API for storing payment methods and enabling NFC-based payments.
NativeWindows Phone 8 SDK supports native development, including significant subset of the Windows 8 SDK, enabling developers to share a significant amount of code between Windows 8 and the phone, particularly for native apps. With the addition of native development support, Windows Phone 8 reduces the need to port and maintain components such as compute engines, graphic libraries, and API sets.In addition to native development, Direct3D is being added to the family of Windows Phone technologies. This means that for the first time, a Direct3D-based PC game can share much of its code base with a phone version, and developers can use state-of-the-art middleware tools and engines that power the industry’s biggest game titles to develop games for Windows Phone.Direct3D app refers to apps that are written entirely in native code, and which use only Direct3D for their UI. This type of app uses a completely different app model than managed apps, and can’t use many of the features of managed apps, such as live Tiles and push notifications.. However, in Windows Phone 8 Developer Preview several new features were added for Direct3D apps to provide software keyboard input support, device theme, and screen resolution detection, and a set of Launchers and Choosers for adding many common phone tasks to your Windows Phone app.Windows Phone 8 SDK supports a subset of the Direct3D library at the 9_3 feature level.
Direct3D and XAMLDirect3D and XAML app development is an attractive choice for developers who want the graphics capabilities of Direct3D but also want to use some of the features only available to managed apps such as Tiles and XAML controls. You can use the DrawingSurface and DrawingSurfaceBackgroundGrid controls to incorporate Direct3D graphics into managed apps to take advantage of managed code features with a very small performance loss.
HTMLHTML-based phone apps are not a supported app model in Windows Phone 8 SDK. However, a developer can create an app that uses an embedded browser control to display local HTML content. Also, in Windows Phone 8 SDK, the phone’s browser has been upgraded to Internet Explorer Mobile 10, with a host of new features such as a robust HTML5/CSS3 implementation, Scalable Vector Graphics (SVG), ES5, IndexedDB, gesture events, and the addition of the high-performance scripting engine, creating new, interesting possibilities for Windows Phone 8 SDK HTML developers.
HTML5 App Project TemplateA developer can create a managed app with a XAML front end that uses an embedded browser control to display local HTML content, and it’s possible to access phone APIs by using the InvokeScript method and ScriptNotify events.
The Windows Phone EmulatorThe emulator runs a full copy of the Windows Phone OS inside a virtual machine. You can debug your apps on the emulator pretty much the same way as when running on the real phone.The emulator contains most of the complete Windows Phone experienceIt does have the browser and will provide the phone behaviours for things like placing calls and sending SMS messagesIt also contains an emulation of the Windows Phone camera, GPS and motion sensorsYou can also use the emulator to capture screenshots of programs running on the phone