Windows Phone

  Home  Smartphone OS  Windows Phone


“Windows Phone (WP) frequently Asked Questions in various Windows Phone job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”



82 Windows Phone Questions And Answers

70⟩ Tell me in my code the method marked by [OnDeserialized] is never called after deserialization. Is this a known issue?

The following conditions should be met for a valid OnDeserialized callback.

1. The accessibility of the method should be public. It can also be internal with InternalsVisibleTo provided to the System.Runtime.Serialization assembly.

2. Return type should be void.

3. There should be exactly one parameter which should be of the type StreamingContext.

4. There should be only one of the four callbacks provided on the method.

 165 views

74⟩ Suppose I have lost one of the application templates in Visual Studio 2010. It’s available in the file system but not in Visual Studio… Any ideas?

Try running Devenv /setup.

Running devenv /installvstemplate might also work; but that is going to slow down overall VS performance. The /installvstemplate is a development only option that makes it easy for developer to test their templates. This shouldn’t be used on end user machines. Devenv /setup does a lot of more processing and caching to speed up VS performance.

 184 views

76⟩ Suppose Have a very simple application that uses the APplicationBar. The app bar shows one menu item when in portrait. However as the second image shows the app bar displays now items in landscape mode. Is that by design or a bug?

Yes, it’s a known problem in the emulator on machines that don’t support the hardware accelerated graphics in the emulator. It works properly on devices and machines that do

 169 views

78⟩ Tell me is it possible to use Custom Pixel Shader in XNA?

From Shawn Hargreaves blog For this release, there are no programmable shaders: “Instead of programmable shaders, we augmented the existing BasicEffect with four new configurable effects: SkinnedEffect, EnvironmentMapEffect, DualTextureEffect, and AlphaTestEffect. These are designed to run efficiently on the mobile GPU hardware, and I think do a good job of providing enough flexibility for developers to create awesome looking games, while also meeting our goals of being able to ship a robust and well tested product on schedule.”

 129 views

79⟩ Suppose when I deployed my XNA app to the xDE, the orientation is in portrait mode, but when I deploy it to a device, it’s in landscape mode.?

The XNA Framework defaults to landscape mode for Windows Phone games, but XDE doesn’t yet support XNA in landscape mode, so portrait mode is the only option there for now. You can set your orientation preferences by using GraphicsDeviceManager settings (SupportedOrientations, PreferredBackBufferHeight, PreferredBackBufferWidth, etc.

 197 views

80⟩ Explain starting with April CTP Refresh, I can compile and debug my XNA game, but it does not show up in list of applications when I am not launching it on the debugger?

The games are installed in games hub, which you can't see in the currently slimmed image. Change the Genre attribute in the App element in WindowsPhoneManifest.xml from App.Games to NormalApp

<App xmlns="" ... RuntimeType="XNA" Version="1.0.0.0" Genre="NormalApp" >

 172 views