Windows Phone 7.5

Windows Phone Toolkit–June 2013–Release – v4.2013.06.11

June 13, 2013 .NET, .NET Framework, Microsoft, ToolKits, Updates, VisualStudio, VS2010, VS2012, Windows Phone, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Phone Store, Windows Phone Toolkit No comments

Windows Phone team has released the latest update(v 4.2013.06.11) for Windows Phone Toolkit available through NuGet.

Get it as an NuGet package:  https://nuget.org/packages/WPtoolkit/4.2013.06.11

Find what’s new in Release Notes: https://phone.codeplex.com/releases/view/106971

Coding4Fun Toolkit v2.0.3 for Windows Phone and Windows 8 apps

March 21, 2013 .NET, .NET Framework, .NET Framework 4.5, Codeplex, Community, KnowledgeBase, Microsoft, MSDN, Third-Party-Libraries and Frameworks, ToolKits, VisualStudio, VS2010, VS2012, Windows 8, Windows 8 apps development, Windows Phone, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Phone Store, Windows Store, Windows Store Development No comments

Coding4Fun team has released a new updates for their Windows Phone and Windows 8 controls. There are some interesting controls available for free through codeplex.com.

Coding4Fun team are major contributors to .NET community including Channel9 video series etc. They always brings up innovation in whatever they do, including set of Kinect based tutorials and sample codes available on Channel9 and Codeplex.

Here is the list of controls and converters available with this toolkit set provided to you by Coding4Fun Team.

Controls
Converters

The new release includes certain enhancements and bug fixes: (details given below)

New/Adjustments

  • PreventScrollBinding is included, this will prevents pivot / panorama movements on slider, prompts, …
  • Forced old nuget packages onto new system
  • Slider property change
    • Fill property -> Foreground property
    • Step property -> StepFrequency property

Bug Fixes

  • Toast Prompt would fail if you had two toasts active at the same time and swiped one away

You can download and try the latest release bits either through direct download from codeplex or through NuGet package installs.

Downloads:

Coding4Fun.Toolkit (Windows Phone 7).zip

Coding4Fun.Toolkit (Windows Phone 8).zip

Coding4Fun.Toolkit (Windows Store).zip

NuGet installs:

Documentation: http://coding4fun.codeplex.com/documentation

Multilingual App Toolkit for Visual Studio 2012–for Windows Phone and Windows 8 apps

March 9, 2013 .NET, Community, KnowledgeBase, Microsoft, Microsoft SDKs, Mobile-Development, MSDN, VisualStudio, VS2012, Windows, Windows 8, Windows 8 apps development, Windows Phone, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone Development, Windows Phone SDK, Windows SDK, Windows Store, Windows Store Development No comments

Multilingual App toolkit for Visual Studio 2012 helps the windows Phone and Windows store app developers to integrate Multi lingual/localization capability in your applications.

This extension for Visual Studio 2012 helps you localize your Windows Store and Windows Phone apps with translation support, translation file management, and editor tools.

Download Multilingual App Toolkit for Visual Studio 2012

read the Blog from windows Phone team for more details: tips for localizing windows phone apps

See some related videos here:

Windows Phone 8–Application Model & Fast Application Resume feature

February 4, 2013 .NET, .NET Framework, All, Community, Microsoft, Microsoft SDKs, MSDN, VisualStudio, Windows Phone, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Phone Store No comments

Windows Phone 8 has a new feature introduced called as ‘Fast Application Resume’, which allows the Windows Phone 8 OS to launch the application from suspended to running quickly. You feel like toggling between multiple apps with out much delay comparing to Windows Phone 7.x platform.

With Windows Phone 7.5, OS was allowed to move the applications to Suspended/Dormant state, if another application is launched or currently running. This allows only one application can be running in the foreground at a time, and other applications you launched previously will be put on Suspended/Dormant mode.  You can bring back the previously running applications(that is currently in suspended/dormant mode), by selecting the app from the Task Switcher(press and hold – <back button for few seconds to display all list of suspended apps in memory).

The following diagram explains the application life cycle of a Windows Phone application:

Windows Phone 7.x – Application Lifecycle 

Win 7 Mango - Lifecycle.png

[Image Courtesy: Nokia Developer]

 

A simple diagram: that explains how the application lives and dies in Windows Phone app

State diagram showing transitions between app execution states

[Image courtesy: Microsoft]

For more information on the lifecycle of a Windows Phone app see App activation and deactivation for Windows Phone.

How is it different in Windows Phone 8.0

 

[Quoting from – MSDN]

On Windows Phone 8, when the user navigates away from an application, the application is suspended and its state is preserved in memory. If the user returns to the application by pressing the Back button or by using the Task Switcher, the app instance resumes. Because the app was preserved in memory, the app quickly resumes in the same state it was when the user navigated away. This process is called Fast App Switching (FAS).

By default(on both Windows Phone 7.x and Windows Phone 8.0 platform) – If the app is suspended and the user relaunches the app, such as by tapping on the app name in the app list or tapping the app’s primary Start Tile, by default the old instance of the app is terminated and a brand new instance of the app is created. This process is slower than resuming a suspended app and provides a different user experience. This is scenario as Windows Phone 7.x.

Windows Phone 8 introduces the ability for apps to request that user actions that would typically relaunch the app, such as tapping the app’s Start Tile, instead resume the suspended instance of the suspended app instance, if one exists. This feature is called Fast Resume.

[source]

To Enable the Fast Application Resume in your Windows Phone 8 applications – you can do it by adding an option(ActivationPolicy=”Resume”) in app manifest file(WMAppManifest.xml)

See how you can do it in visual studio:

wp8_far

Code block:

<DefaultTask Name="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume"/>

Sounds Cool! right – this can improve your application performance in Windows Phone 8, while toggling between different apps.

For more information on the Fast Application Resume Fast app resume for Windows Phone 8.

References:

http://www.developer.nokia.com/Community/Wiki/Application_Life_Cycle_-_Windows_Phone_7_Mango 

The Application Execution Model in Windows Phone 7.5 by Daniel Vaughan

MSDN – App activation and deactivation for Windows Phone

MSDN – Fast app resume for Windows Phone 8

Execution Model Overview for Windows Phone

Windows 8 Client Hyper-V and Windows Phone 7.x emulator slowdown

January 28, 2013 .NET, All, Community, Hyper-V, KnowledgeBase, Microsoft, Mobile-Development, MSDN, Tips & Tricks, VisualStudio, VS2010, VS2012, Windows, Windows 8, Windows Phone, Windows Phone 7.0, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone 8.0 SDK, Windows Phone Development, Windows Phone SDK, Windows Phone Store No comments

Hyper-V is a great platform for virtualization and luckily Windows 8 have inbuilt/integrated support for hyper-v technologies. Windows Phone 8 SDK uses hyper-v for emulator virtualization and it works pretty good with Visual Studio 2012. Hyper-V integrated to the Windows 8 is been called ‘Client Hyper-V’.

Client Hyper-V is the same virtualization technology previously available only in Windows Server¼. A similar functionality in Windows 7 is called Windows XP Mode. Client Hyper-V enables you to run more than one 32-bit or 64-bit x86 operating system at the same time on the same host computer. But instead of working directly with the computer’s hardware, the operating systems run inside a virtual machine (VM). Hyper-V enables developers and IT professionals to easily maintain multiple test environments and provides a simple mechanism to quickly switch between these environments.

You can read more about it from MSDN Guide – Using Windows 8 Client Hyper-V

m-w630-windows-8-logo-620x322Windows-Phone-7_1-Mango-Logo

The problem is – Client Hyper-V have some inconsistencies with old Windows Phone 7.x emulators. The new Windows Phone 7.8 emulators works fine, but with older Windows Phone 7.x emulators you could experience the slow start-up/load of the emulator. It takes few minutes to launch in some systems, and in some high end multi core systems it launches in moments.

You will experience this problem when you want to develop and test for old Windows Phone 7.x devices, you will have problem in launching emulators.

From my experience and searching on Google the following thread help me to understand that it is a known problem with Windows 8 – Hyper-V and Windows Phone 7.x emulators. If you turn off Hyper-V for a while you can experience that Windows Phone 7.x emulators are launching instantly when you launch for debug/run.

http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/2d149fee-a52e-4e2d-90d2-24e76639bd85/ 

So here is the dilemma scenario,

You want to develop an application that you want to test on both Windows Phone 7.x and Windows Phone 8.0 emulators

OR

You want to develop and application targeting Windows Phone 7.x using Visual Studio 2010 in Windows 8.

 

I have few steps to follow to toggle between the development environment, and depending on the system it is time taking, or little annoying – but we have to deal with it.

So I have to disable Hyper-V when I have to work on Windows Phone 7.x emulator.

Disable Hyper-V feature

Control panel -> Programs and Features -> Turn windows features on or off -> Uncheck Hyper-V feature.

hyper-v

Restart the machine.

NB: Enabling/Disabling Hyper-V will require you to restart to take effect.

But this is a time taking process and every time you will have to On/Off feature and restart. What we could have an option in Windows Boot itself – through which I can normally boot to Windows with Hyper-V or boot with Hyper-V disabled.

We can do that using hypervisorlaunchtype = off/on boot flag. 

An easy fix for this is to create a second boot entry for my system that starts Windows without starting the hypervisor.  To do this you need to open an administrative command prompt and run the following commands(follow steps below):

image

1. bcdedit /copy {current} /d "Windows 8 – no hypervisor"

This copies your currently active boot entry (assuming that this is the one you want to copy or select the appropriate one – if you are on a multi-boot environment) and gives the new copy the name you mentioned above ‘Windows 8 – no hypervisor’.

this will display a message in command prompt that “The entry was successfully copied to {some guid_identifier}”

 

2. bcdedit /set {guid_identifier} hypervisorlaunchtype off

guid_identifier is the identifier for the new boot entry (copy from the output of a plain ‘bcdedit’ command – we executed in step 1)} ,

Copy the {guid} from the command prompt window and run the above command appropriately replacing {guid_here} with {guid from your command window for the new boot entry}

hviosr_002

Now you have an additional boot entry, you can login in to your Windows 8 with hyper-v disabled mode and when you are done with it – You can reboot and select your default boot option(which is with Hype-V enabled).

1. When you want to work with Windows Phone 8.0 emulators select default boot option from boot menu.

2. When you want to work with Windows Phone 7.x emulators – select the newly created boot option from boot menu.

Hope that helps some of you – who worried with these kind of troubles with Windows Phone development.

Note: Some of you with kind of powerful systems will less experience these kind of issues. So this tip is for those who are in need. Smile

Setting up Windows Phone SDK update for Windows Phone 7.8 and working with Visual Studio 2010/2012

January 23, 2013 .NET, All, Community, Microsoft, Microsoft SDKs, Mobile-Development, MSDN, VisualStudio, VS2010, VS2012, Windows, Windows Phone, Windows Phone 7, Windows Phone 7.0, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone Development, Windows Phone SDK, Windows Phone Store, XAML 1 comment

Microsoft has just released an update for Windows Phone SDK 7.1 and 8.0 to provide support for Windows Phone 7.8 emulators.I have shared the details in my last blog post.

With this article I will walk you through how it would look to work with this update.

The following simple steps will help you with it:

1.) Install Windows Phone SDK 8.0 or Windows Phone SDK 7.1

2.) Install Windows Phone SDK Update for Windows Phone 7.8 from Microsoft

Click the Download button for ‘WPexpress78_update.exe’

3.) Double Click on ‘WPexpress78_update.exe’ and Click on ‘Install’ to apply this update.

Note: Depending on the network bandwidth, it would take some time to download and install necessary packages.

image

image

Once the update is completed, you will receive the confirmation.

4.) Launch Your Visual Studio 2010 or 2012, and open up/create a Windows Phone project.

image

Now go to the device selection drop down and you can see that new set of 7.8 emulators(256MB and 512MB) are added to the list.

image78_vs2012

and click on ‘Run’

Now you play with emulator for some time you can see the new tile resizing option to display small tiles for your application. And also you can create Flip, Cycle, and Iconic template based live tiles as well.

Just sharing some screen shots of sample app on emulator with Medium, small application live tile display.

imageimageimage

Why you need this separate set of emulators for 7.8, instead I can use the old 512MB/256MB emulator right?

NO, You require Windows Phone 7.8 emulators to setup and test the new Cycle, Flip, or Iconic – live tiles[small sized] for your application. Also to have the new feature –  ‘Live Tile light up’ ( an easy way for you to add Windows Phone 8 Live Tile functionality to your Windows Phone OS 7.1 app so that when it’s run on a Windows Phone 7.8 or Windows Phone 8 device it “lights up” the new templates! )

the following articles would help you understand this further.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj720574(v=vs.105).aspx

http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/01/22/windows-phone-7-8-and-windows-phone-8-live-tile-light-up-for-windows-phone-os-7-1-apps.aspx

Read about Flip, Cycle, and Iconic live tile templates.