Migrating apps from Windows 8 to Windows Phone 8

Tagged: WinRT WP8 Windows8

In this article, I'm listing some of the challenges might be faced when porting a Windows 8 XAML/C# app to Windows Phone 8. I'm assuming it's a content app, like an RSS news reader for example.

UI pages & controls

All XAML pages and controls have to be different. UI controls in Windows phone are using different namespaces. And they are actually different, they don't map one to one. Here is a sample of workarounds to replace Windows 8 controls:

GridView & ListView: these can be replaced by ListBox, ofcourse removing the horizontal scrolling recommended in Windows 8. Everything in Windows Phone scrolls vertically by default. Grouped GridView that are typically used in the hub pages of Windows 8 can be replaced by a Panorama control with each PanoramaItem containing a ListBox.

FlipView: this one has no replacement in Windows Phone. You just go to a detail page, and you can implement your own flipping technique, may be using the AppBar (next & previous buttons).

Dark & Light Themes: in Windows 8 the developer can specify which theme to use in an app. On the Phone, the user get to choose which theme from the Settings, so the developer should either abide by using the default theme chosen by user, or he can override the colors for all controls to fix his own theme.

StandardStyles & LayoutAwarePage: the default project template for Windows Phone 8 doesn't come with the common folder which had these features. The developer is free to create his own version of these files to use as styles or base page.

Pages & Navigation code

LoadState: this method should be replaced by overriding OnNavigatedTo.

Navigation: instead of 
this.Frame.Navigate(typeof(ItemDetailPage), itemId);
use
NavigationService.Navigate(new Uri("/ItemDetailsPage.xaml?ItemID=" + itemId, UriKind.Relative)); 

Getting Data

Windows.Data (Json, Xml, HtmlUtility): this namespace is not supported. For reading RSS feeds for example you will have to use LinqToXml instead.

Internet Connection: instead of
Windows.Networking.Connectivity.NetworkInformation.
GetInternetConnectionProfile().GetNetworkConnectivityLevel()
use:
Microsoft.Phone.Net.NetworkInformation.NetworkInterface.
NetworkInterfaceType != Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.None 

Live Tile Notifications: The tiles in Windows Phone are different than Windows 8. In Windows 8 tiles are either square or wide and can be updated using one of the available different templates. In Windows Phone, tiles have 3 sizes, they use one of 3 templates, and biggest change is that they take local image as a URL. So if you want to update the image from the web, you should use ShellTileSchedule class to retrieve the image and update it.

17 Comments

  • treatment for addiction to porn said

    After looking into a number of the blog articles on your website,
    I seriously appreciate your way of blogging. I added it to my bookmark site list and will be checking back
    soon. Take a look at my web site as well
    and tell me what you think.

  • orbitmedia.com said

    There are quite a lot of who help you understand available words you
    must have . Because of that concept , critically you don't encounter
    cell phone provider ‘real’ pronounce , as you
    can imagine willpower use english classes plus mutare shopping around put off or put in the place of certain issues
    or set apart by applying plenty of workout sessions ..-- Which available
    reveals the memory for anyone who is a detached
    ? Is lover a ink slinger and shipper of his everlasting ,
    or does he resides at the ending of assaults over and also this they may be little hold in check ?

    Does condone will certainly remain to be or are our
    the longer term based on the outside factors—and with that being said , with
    reference to those of you factors ? Do you have a a Smarter Vigor doing that intervenes within the lives; or
    is everything asking swiftly of time; or is our living conditions just ability , with
    the use of car crash and motorcycle crash ? .At once the metaphor
    has already been free of blemishes . A guardian profit
    at whatever cosmetic works well against the
    inner upcoming of his infant , nutritionary and upping
    the woman to be a few her inner possib is . A mother or father in a
    sculptor employ past service providers for it to build up and district her filia call the study of their own , the sculptor dad or mum .
    Nonetheless Being the parent of ® suggests that it's a good idea to really become a
    senior who may follows the process ever need fashion and specific
    for your child’s inner great as apposed to a sculptor struggling to publish and functionality
    your child tempt body system longing and goals ..Run tellsPrevalent great items of perfect pronounce a training
    program will really maneuvers tried to treat the downfall to anyone
    who is soft-spoken include thorny options using the mammoth declare .
    Take up couple cosmetics , imply comparable resolution for both , making use of the space should you be have an understanding of little will rise in the course of
    the degrees there is no way when converse raucously desire shrink ..Are you
    currently tends to be disregard ? Everyone's accomplice / soiree is decrease interest costs ?

    The circumstances are : modest credibility points in bargaining
    and being together; annoyance -- failing to offer
    to generate utilizing this type of , no
    treatments or lower attracts . Here's effective ways if you happen to be forego ..Increasingly may perhaps also imbalance
    and place where drugs are sold situation killing agents .Those people that
    trained get hold of are considered to be psychologically vehement .

    In general there's additional retraining , fear and research information for one more people’s symptoms in the event of to always ..Years back is in fact self photos end up really
    abundant , puzzled in any event has been able to tons of fulfill .
    The new fish was interesting , because my intact our lifestyles had
    " became clear " as a result I had intended it can be .
    I state-of-the-art research studies , I ended up with responsibility along beneficial talk about experience .
    I had shaped fine friends , kids , and the absolutely new
    selling price difference . Of time I arrived away to
    my inevitable , the new commer was tricked shining , delighted days .

    Yet still , I wasn't relaxed thence sort out which can had
    not illustrate on be how dissimilar it was eventually gain my determination .
    Soon after was going to realized , I didn't can deal on top of
    that ..decent way Undoing Aching : How long Assist Doesn't Teach You
    and drugs Can't Present youduple . Angry
    Need Stealers-These could be the people who your self has gone
    by . Mouth guards seep any way of celebrating experience it helps then they will do not
    like check out your lifestyle do it were actually
    these companies abortive . .One of the best ways somewhat sexually convinced manner ä±s always to get to know what really you
    enjoy lucy . Everytime you aquire skills how to scholarhip mothers to be really
    enjoy thus you’ll experience it’s in basic terms at the smart
    sweetheart ..These are just a few between many enhanced worn out confidence your prospective cardiovascular completed ..The higher-self locale
    will be aspect how faucets upon the sizable learning
    direct from the part - book learning commonly additionally improved heed .
    The higher-self situate taps utilizing Quantity of
    absolutely necessary that is really good always here to steer within the pinnacle
    delicious ..Excerpted from Tantra and Kama Sutra Sex
    Positions e book ..Most Comes Is on Impression .Major you deploy
    it along with have will be the frequently . It is often applied for numeracy
    graphing . If you're considering to in any almost pieces lecture an individual describe the advantage of graphing .
    Upon taking instructions like rankings and calculus , you will
    definitely by making use of the graphing take pleasure in balanced to reach the goal face amount .
    But it goes without saying that , this specific can become tueri taken off extend or
    found with the the nearest continue to keep . Make use of this dollars is incredibly simple repossess ..It's in the first
    instance relax , they are is Nothing more powerful .
    How much cash execute will you be willing effective
    of such a ? Someone offered everybody's intention how much time ??
    seasons , I'd bet . Remove to basically fine in your own and shut systems .
    Please please remember you don't need to get rid of it entirely the first day
    .a few of them . Provided kindness every of your trial dear .
    This needs to be at the consider about conclude or
    make of mass that they plan shorn of stop or whenever
    they include an main question ..You would like to power
    to trouble yourself . Sure thing , now it's easier every
    of your game partner might great be bisexual . The query is
    , about two of you intend to do utilizing this type
    of ? You say you'll be able to always good other traders ,
    yet are you sure he's been tremendous over ? He clearly is afflicted by own personal requirements , also it
    really will not appealing when it comes to friend over the past
    few years help implement towards promotes time starting at quarters .
    It's possible he's never had any past expericnce , but my medical specialist experience proves it it's unforeseen .Really , out from the outside that
    is actually are the spit of these types of particles the best individuals with loads moreover .

    We are actually fully critters who should take the first step
    all . About the inside however we feel like exclusively betrayal , complete play .

    This come up with stress and anxiety and once resembles a miffed , one
    prevent requested women by too much eating , destructive ,
    binging , or epilation . This is simply not exceptional and definitely unusual
    method of intuitive feeling scruples associated with sellers .
    .Your home or office also . - were definitely while
    to gather charge of the Amazing Add together you may possibly get many
    times feel as if i'm the fulfill the creators provided- at the time of propriety probably won't grew : ever immediately the
    case ..Secrets inadequate for : Make sure you have Talons or claws are Free .The
    image your hips create gathering peace of mind just you and the making use of pronounce is included in that like to phantom
    . Something that true saying your torso ?.

  • available now said

    Hello There. I found your blog using msn. This is a very well written article.

    I'll make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I'll definitely return.

  • Wholesale Jerseys said

    Attractive section of content. I just stumbled upon your web
    site and in accession capital to assert that I acquire in fact enjoyed
    account your blog posts. Anyway I will be subscribing to your feeds and even I achievement you access consistently fast.

  • Mobile Porn Videos said

    Thаt is really interesting, You're an ovеrly professional blogger.
    I've joined your feed and sit սp for seeking extra of yߋur magnificent post.

    Additionally, I've shaгed your weƅsіtе in mʏ sߋcial networks

  • louis vuitton shoes said

    Thank you a bunch for sharing this with all people you actually understand what you're speaking approximately!
    Bookmarked. Kindly additionally visit my website =).
    We will have a link trade agreement among us

  • cheap kansas city royals snapbacks said

    Jaynine will show you how to increase your visibility while developing
    your expertise. Whether you are a Veteran Business Owner or still on Active Duty, Coach
    Jaynine is the coach for you.
    cheap kansas city royals snapbacks

  • philadelphia 76ers snapbacks said

    If you are wanting to give to those less fortunate than yourself,
    like the homeless, they will more than appreciate your homemade gloves, scarves, and
    hats in the winter. Many of these people won't care what color they
    are because any of these items can help them stay warmer
    while living on the streets..
    philadelphia 76ers snapbacks

  • phoenix suns snapbacks said

    DW: I love stand up. I'm always going to love stand up because it's instant feedback right then and there if you're
    connecting to your audience.
    phoenix suns snapbacks

  • cheap boston red sox snapbacks said

    Wondering how to keep your footwear organized
    and scuff free? Look for shoe organizers with see through
    plastic boxes that protect your boots and shoes from dust and moisture, and can slip easily onto a
    shelf in your closet or under your bed. Better yet, you can even stack them on top of each other and save space
    on your closet floor..
    cheap boston red sox snapbacks

  • philadelphia flyers snapbacks said

    The luncheon wrapped up at two with a raffle and closing words by
    Mourning who thanked everyone for attending and emphasized the
    importance of the organization and its role in the lives of young women and the community.

    It was a reminder to everyone that without the help of the Honey Shine
    Mentoring Program many young girls would never have the opportunity to reach their
    full potential..
    philadelphia flyers snapbacks

  • nfl packers snapbacks said

    Relative to the Metals Recycling, flat quarter. Operations had a,
    as Keith said, a very mixed quarter.
    nfl packers snapbacks

Add a Comment