Top 50 Windows Phone Interview Questions
Q1. Tell Me Will Texttrimming Property Be Available On Textblock?
No. You must hack it up along with your own measure.
Q2. How The Volume Work Between Apps And Hardware Buttons On The Device?
Applications get to control the quantity for their streams but the hardkeys manipulate the final master output stage.
Q3. How To Change Language Settings?
Go to the Settings button on your device
Select General
Select International
Choose the preferred language
Q4. Can Not Find Phoneapplicationpage.Fullscreen In April Ctp?
SystemTray is an attachable belongings now. You can use it to your page xaml, some thing like:
<navigation:PhoneApplicationPage x:Class="WindowsPhone.Hello"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone.Controls.Navigation"
shell:SystemTray.IsVisible="true">
Q5. Explain Where Is Xmldocument Class?
Instead of Xml Document, the usage of XDocument from System.Xml.Linq.Dll
Q6. How To Edit Locations For Local?
Users can customize Local under Settings.
Q7. How To Deserialize Json From A Rest Call?
Use DataContractJsonSerializer. It is in System.Servicemodel.Web
Q8. Tell Me Is There An Api For Retrieving Information On The Files Located In The Store? I Am Looking To Check When It Was Last Written?
Try IsolatedStorage.GetLastWriteTime
Q9. Can You Please Explain The Best Way To Detect That I Am In Design-mode In Expression Blend Or Visual Studio?
DesignerProperties.IsIndesignTool
Q10. What Is The Windows Phone Front Page?
Users can upload and order as many classes as they need and headlines for each class can be displayed at the Front Page.
Q11. How To Access The Liveid Credentials A User Has Entered Into The Device?
In this launch, the credentials aren't to be had to 1/3 birthday celebration apps. You will want to spark off the consumer for credentials and manage these inside your app.
Q12. Suppose I Am Trying To Receive Toast Notifications In Emulator App. I Got Everything Setup But Notification Does Not Show Up In Emulator At All?
Make sure you have got a product / publisher call set within the manifest.
Open WindowsPhonepmanifest.Xml, underneath Properties. Edit Publisher="" to Publisher="something". Redeploy.
Q13. What Is Windows Phone Bluetooth?
Windows Phone helps the subsequent Bluetooth profiles:
Advanced Audio Distribution Profile (A2DP 1.2)
Audio/Video Remote Control Profile (AVRCP 1.3)
Hands Free Profile (HFP 1.5)
Headset Profile (HSP 1.1)
Phone Book Access Profile (PBAP 1.1)
Bluetooth File Transfer (OBEX) (from Windows Phone 7.Eight)
Windows Phone BTF help is to be had from Windows Phone 7.Eight, but is confined to the shifting of photographs, track and motion pictures thru a 'Bluetooth Share' app.
Q14. Where Is Httputility Class, Since There Is No System.Windows.Browser Namespace?
HttpUtility is in System.Net namespace You can also find alternatives for escaping strings at Uri.EscapeDataString and Uri.UnescapeDataString ..
Q15. Tell Me Is There A Way To Detect If Application Is Idle?
No. You need to try this yourself. Your self (you may enroll in ManipulationStarted on the basis frame with handled=authentic after which use a easy timer).
Q16. Can I Get Weather For My Location?
Windows Phone 7 supports global places, which a person can search for with the aid of inputting the metropolis name.
Q17. How To Detect If My Application Is Exiting So I Can Save State?
You can pay attention to Application.Exit, however this might be too overdue maximum of the time. You must concentrate for the Pause occasion and keep your country there.
Q18. What Content Can I Share/store?
Users can proportion content material with their pals through the proportion characteristic available on each story and image.
Users can keep articles, images and videos to the Saved folder in AP Mobile. The stored folder is on the fourth panel of the primary display
Q19. Explain Does The Web Browser Control Share The Ie Cache?
No. Each app has its own wininet cache. The webbrowser manage times to your app will use that app's cache. The IE cache could be separate
Q20. How To Save Screen From An Xna App?
Texture2D has a SaveAsJpeg technique and a SaveAsPng approach. Be conscious that Zune does no longer sync pngs, so saveasjpeg is usually recommended
In April's CTP, you can attempt:
MediaLibrary library = new MediaLibrary(); library.SavePicture(“My Picture”, streamToJpegData); // You can use this from interior a Silverlight app furnished you've got the ID_CAP_MEDIALIB functionality. // You do ought to make certain the Stream you bypass in includes JPEG record records, however in any other case it have to give you the results you want.
Q21. Tell Me Is There A Way To Know If My Code Is Running On Emulator Or Device?
Check System.Environment.DeviceType
Q22. Suppose I Am Hitting System.Invalidoperationexception In The Navigate Method Of The Webbrowsercontrol. What Gives?
Don't call the navigate approach from your PhoneApplication Page's constructor. You ought to wait until control is loaded before you Navigate.
Q23. How To Sniff Network Traffic From The Emulator?
Netmon three.4 (beta) defintitely works. Fiddler works too. If the usage of fiddler, don't forget to exchange it to either lure “non-browser” or “all” site visitors and begin fiddler before launching the emulator.
Q24. How To Dismiss The Sip Programmatically?
Set the Focus() to a few different UIElement that is focusable.
Q25. What Happens To Isolatedstorage When App Is Uninstalled?
It gets deleted. Content saved to media library isn't deleted on Uninstall
Q26. Tell Me Is It Temporary That The Control Styles Are Included In App.Xaml?
Yes. In the very last product a master 'everyday.Xaml' may be injected into your software. This injected dictionary can be primarily based at the subject selected whilst your app is started out. Dictionary is injected each time your app starts.
Q27. What Is Send To Ap And Who Gets It?
Send to AP is the Associated Press' way of extending the journalism floor to its customers. Users can ship in information suggestions and snap shots at once to AP editors via the Send to AP option under Settings. User statistics is only used for the reason of contacting the consumer to affirm the end or to collect more facts.
Q28. Explain Windows Phone Hardware?
Windows Phone 7 devices had been first produced by means of Dell, HTC, LG and Samsung. These hardware companions were later joined by way of Acer, Alcatel, Fujitsu, Toshiba, Nokia, and Chinese OEM ZTE.
Windows Phone 8 gadgets are currently being produced with the aid of HTC, Huawei, Nokia, and Samsung.
At the 2014 Mobile World Congress, Microsoft announced that upcoming Windows Phone eight.1 gadgets will be synthetic by Gionee, HTC, Huawei, JSR, Karbonn, LG, Lenovo, Longcheer, Micromax, Nokia, Samsung, Xolo, and ZTE. Sony (below the Xperia or Vaio logo) has additionally stated its aim to supply Windows Phone devices in the near future.
Q29. Tell Me In My Code The Method Marked By [ondeserialized] Is Never Called After Deserialization. Is This A Known Issue?
The following conditions ought to be met for a valid OnDeserialized callback:
The accessibility of the method ought to be public. It also can be internal with InternalsVisibleTo provided to the System.Runtime.Serialization assembly.
Return type ought to be void.
There ought to be precisely one parameter which need to be of the sort StreamingContext.
There need to be most effective one of the four callbacks supplied at the approach.
Q30. How To Edit Location For Weather?
Users can customize Weather beneath Settings. Locations for Local News and Weather are dealt with one at a time. Windows Phone 7 helps international places.
Q31. Explain I Am Getting Too Many Mouse Leaves On My Custom Control.?
As some distance as the emulator is worried, there may be no mouse; everything is available in as a touch event and while the “finger” comes up, the mouse has left the scene, in view that there's no affordable region for it to be at.
Q32. What Is Windows Phone?
Windows Phone (called WP) is a proprietary telephone working device evolved through Microsoft. It is the successor to Windows Mobile, even though it is incompatible with the sooner platform. With Windows Phone, Microsoft created a brand new person interface, presenting a design language named "Modern" (which turned into previously known as "Metro"). Unlike its predecessor, it's far in general aimed at the patron market rather than the corporation market. It become first released in October 2010 with Windows Phone 7.
Q33. How To Restart Or Shutdown My Application Programmatically?
There is not any API to try this. Hitting ‘lower back' while there is only one page left at the stack is the manner to exit the application. Hitting Start button does no longer go out, just pauses it.
Q34. Can We Control The Web Browser Controls Zoom?
No. There isn't any programmatic manner to zoom the manage. You ought to include a viewport meta tag to set the initial scale level.
Q35. Some Images Look Different When Synced To The Device And Read Programmatically. Do Decoders Change These?
No. Decoders and apps show them as they are. Zune software does resize them whilst syncing them, that is probably the purpose on your differences
Q36. Suppose My Site Is Down, And Async Calls Are Taking Too Long To Timeout. How Can I Set A Reasonable Timeout?
Per MSDN doctors, you ought to call Abort() to your request while you experience iti s appropriate timeout
Q37. Suppose I Am Trying To Detect If An External Headset Is Attached To The Phone,can I Use Microsoft.Xna.Framework.Audio.Microphone.Isheadset?
No. This property is actual all the time for the cellphone
Q38. What Is Windows Phone Web Browser?
Internet Explorer on Windows Phone lets in the person to hold a listing of preferred internet pages and tiles linking to internet pages on the Start display screen. The browser helps up to 6 tabs, which could all load in parallel. Other features encompass multi-contact gestures, easy zoom in/out animations, the ability to save pics which are on net pages, proportion web pages thru e mail, and help for inline search which lets in the user to look for a phrase or phrase in a web web page with the aid of typing it. Tabs are synced with Windows eight.1 gadgets using Internet Explorer 11.
Q39. Tell Me Are There Apis To Read Rss/atom Feeds?
You should use System.ServiceModel.Syndication from the laptop because it dependencies are totally found in CF
Q40. What Are The Supported Codecs For Video?
Supported Codecs and box formats are indexed in MSDN documentation: http://msdn.Microsoft.Com/en-us/library/ff462087(VS.92).Aspx Note: The Device Emulator does not have hardware decoders so the codec guide on the device emulator is a great deal much less than what is indexed. For Emulator you only have WMA, WMV, and VC1 software program decoders.
Q41. Tell Me Where Is The Best Recommended Place To Store Both Static And User-precise Configuration Information?
You can use the IsolatedStorageSettings.ApplicationSettings.
Q42. What Is Windows Phone User Interface?
Windows Phone capabilities a consumer interface based totally on Microsoft's Windows Phone design machine, codenamed Metro, and was inspired by the user interface inside the Zune HD. The domestic screen, known as the "Start screen", is made from "Live Tiles", that have been the foundation for the Windows eight live tiles. Tiles are links to programs, features, functions and individual objects (inclusive of contacts, net pages, programs or media items). Users can upload, rearrange, or get rid of tiles. Tiles are dynamic and replace in actual time – for instance, the tile for an email account would display the variety of unread messages or a tile could display a stay replace of the climate. Since Windows Phone eight, live tiles can also be resized to both a small, medium, or huge appearance.
Q43. What Do You Know About Windows Phone Media Support?
Windows Phone supports WAV, MP3, WMA, AMR, AAC/MP4/M4A/M4B and 3GP/3G2 standards. The video file formats supported on WP consist of WMV, AVI, MP4/M4V, 3GP/3G2 and MOV (QuickTime) standards. These supported audio and video formats could be dependent on the codecs contained internal them. It has also been previously mentioned that the DivX and Xvid formats within the AVI document layout are also playable on WP gadgets.
Q44. How To Send Suggestions On How To Better The App To The Ap?
Users can ship function requests and feedback to the AP through the Feature Request choice in the application. Users can locate the remarks options below Settings.
Q45. How To Detect The Resolution Of My Device?
(App.Current.RootVisual as FrameworkElement).ActualHeight and (App.Current.RootVisual as FrameworkElement).ActualWidth gives you tool's resolution.
If you need to understand the seen length (taking AppBar / SystemTray into consideration) then simply ask for it off the web page as an alternative.
Q46. 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 Mod
Yes, it is a recognized problem inside the emulator on machines that don't aid the hardware accelerated photographs within the emulator. It works well on devices and machines that do
Q47. How To Pin An App On The Emulator?
You certainly run the application once to deploy it, and then browse to the utility listing, and click and hold the utility icon, you will then get a context menu with the option to pin.
Q48. Tell Me Is Wcf Supported In Windows Phone?
WCF is supported on WP7.
When you take a look at the SL3 model of WCF, WP7 helps that besides for the following:
PollingDuplex aid
Runtime code era help for ChannelFactory.CreateChannel APIs
Astoria/Azure support
Q49. Suppose I Have Lost One Of The Application Templates In Visual Studio 201
Try walking Devenv /setup.
Running devenv /installvstemplate may additionally work; but that is going to gradual down common VS performance. The /installvstemplate is a development handiest option that makes it smooth for developer to check their templates. This should not be used on end person machines. Devenv /setup does quite a few extra processing and caching to hurry up VS performance.
Q50. How To Customize Front Page?
Users can find the Customize choice beneath Settings on the first screen.
