Use Windows 8 WinJS code for Window Phone 8 - windows

Is there a way to re-use Windows 8 WinJS code for Window Phone 8 (for receiving push). Whether MPNS is supported from WinJS rather than C#.
Any Suggestions or Code Snippet is highly appreciated.
Thanks in advance.

Related

UI Automation doesn't work in Windows Phone 8 app.

I developed an app for Windows Phone 8 some time ago. The client wants the app to be accessible for Blind users.
I have given "AutomationProperties.Name" values to all the app elements, but Narrator doesn't detect the elements at all. It detects the main window of the app but none of its containers and items.
I made a new app and narrator detects all the controls I put in there.
I have not been able to find any help on this topic anywhere and any help will be highly appreciated.
Apparently Windows 8 doesn't support this feature. I upgraded my target OS to 8.1 and narrator is working just fine.

Include Windows 8 namespace in Windows Phone 8 [duplicate]

I am trying to write a Windows Phone 8 SDK-based application. I keep seeing mention of a ProgressRing control but I don't see it in the Toolbox or in the xaml designer.
How do I use this?
ProgressRing is part of the Win8 UI controls, not WP8. In WP8 you should use SystemTray.ProgressIndicator instead which is part of the windows phone UI shell. See here and here for samples.
See below blog link for simple copy&paste code to exactly replicate the Windows ProgressRing (uses the actual style code). Works perfectly, just added it to my WP8 project:
http://briandunnington.github.io/progressring-wp8.html
There is more info about adapting it to WP8 in the answer to this question:
How to Use ProgressRing in Windows Phone 8
Download this app for your phone to see it in action.
ProgressRing is not available for Windows Phone 7 or 8, you have to use ProgressBar or rather the PerformanceProgressBar:
http://www.windowsphonegeek.com/articles/WP7-PerformanceProgressBar-in-depth

Live tile inside windows phone 7 application

Is it possible to create a live tile inside our windows phone 7 application? I am asking the similar functionality as in AppHub app "...i'm a WP7!".
Please provide me input, how i can achieve this functionality?
Check out the HubTile control from the Silverlight Toolkit for Windows Phone over at codeplex.
Just be careful that it looks good and makes sense in your app - it's a very dynamic control and you can't see the Title of the control all the time.

Blocking a CALL or SMS in WP7

I am .NET developer and currently working on App to develop on Windows Phone 7. I am looking for something in Windows Phone 7 using which the user can block the calls or sms from a specific number.
Is there any way one can achieve the Call Blocking and SMS blocking in Windows Phone 7, If it is there then please help me.
Thanks
BHAVIK GOYAL
There is no way to do this with Windows Phone 7.
If you must have this functionality then WP7 is not the right platform for you.

How can I simulate multi-touch in the Windows Phone 7 emulator?

I’m running the Windows Phone 7 emulator/simulator and I need to simulate the two-finger pinch/zoom gesture. Any tips?
There is a good guide here: http://michaelsync.net/2010/04/06/step-by-step-tutorial-installing-multi-touch-simulator-for-silverlight-phone-7
Basically you will need to use the Multi-Touch Vista project on CodePlex available here: http://multitouchvista.codeplex.com/ and 2 mouses mice.
You'll need Windows 7 and a multi-touch monitor; in that setup 2 touchpoints are supported natively by the emulator.
There's no easy software or emulation API support for this.
Laurent Bugnion's MultiTouch library (supports Silverlight 4 WPF, and WP7) enables simulated multitouch in the WP7 emulator.

Resources