DCSIMG
TechEd,Source Code - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » TechEd » Source Code (RSS)

Windows Phone 7 Quick Tip: How to use Bing Maps in XNA games

A few days ago, a colleague of mine pointed out to this site which shows a Bing Maps usage within XNA game. I was intrigued how to achieve it… I know that Silverlight applications for Windows Phone 7 could use Bing Maps control (see great usage tutorial here ), but XNA games cannot render Silverlight controls… To solve it, I decided to use a different approach for XNA – download image tiles and present them in XNA game. Let’s get started. First, in order to use Bing Maps API you need a Bing Maps...

Where am I?

If you developing games using XNA game studio, many times you need to know where your code is running - on PC or on Xbox 360 hardware... Unfortunately, there is no any out-of-the box functionality provided by XNA Framework to check platform, but here is the solution: XBox 360 the only device, which supports special 3rd mode for Pixel & Shaders version 3 on its Shader profile and this could be checked out. Here is the sample code: 1: bool isXbox = false ; 2:   3: //Lets get graphics device...

Silverlight 2 & CreateSilverlight()

Current Silverlight 2 Beta by default doesn't using silverlight.js/CreateSilverlight() functionality we used to add Silverlight in Alpha version, but Silverlight directly created on page as object: 1: < div id ="silverlightControlHost" > 2: < object data ="data:application/x-silverlight," type ="application/x-silverlight-2-b1" width ="100%" height ="100%" > 3: < param name ="source" value ="SilverlightApplication4...

TechEd '08

Come and see me presenting with Tamir Khason on TechEd '08 in Eilat :) We will speak about WPF , Silverlight and... XNA !   XNA & WPF Better Together!