×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    8

    Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    Hi all

    I'm wondering how to change ApplicationIcon.png on the fly in Windows Phone 7 app (small size Tile which use ApplicationIcon.png as source by OS).

    Namely, I want when create Secondary live Tile using Pin action to use custom small size picture for small Tile to differentiate more tiles fot the same app.
    We have a lot of great wiki pages how to create custom Live tile but none of these examples didn't show how to use custom smal size tile for WP 7.
    Using Microsoft.Phone.Shell.StandardTileData we can only use BackgroundImage and BackBackgroundImage (for WP 8 SDK there is SmallBackgroundImage).

    Best regards

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    548

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    If you're looking to customise the 'small' live tile in WP7.8 then I would recommend looking at the MangoPollo library which makes available the extra tile templates...

    http://mangopollo.codeplex.com/

    (download the source code which includes a sample app containing examples of all the tile template types)

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    8

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    Thanks, but I need that for WP 7.1

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    685

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    for WP7.1 ??? (you mean standard wp7.5 devices?)
    AFAIK WP7.1 doesnt have support for small tile size
    The UI changes that were done to WP7 to look like WP8 was done in WP7.8
    You need to download the WP7.8 update to the wp7.1 SDK that way you will have access to the small size tile.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    548

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    Quote Originally Posted by Spaso Lazarevic View Post
    Thanks, but I need that for WP 7.1
    Just to make sure, when you say 'small tile' do you mean the tiles on the Start screen or the app menu when you swipe right?

    (Also, the API version 7.1 is 7.5 and 7.8)
    Last edited by theothernt; 2013-07-07 at 19:21.

  6. #6
    Registered User
    Join Date
    Dec 2012
    Posts
    8

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    7.5 (NOT 7.8).
    I know that APi don't provide that, but I'm wondering if it is possible.

    Best regards

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    685

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    Spaso: like i wrote below, WP7.5 doesnt support small size live tiles, so how would you be able to change the small size live tile?

    why do you insist on wp7.5 btw? didnt all wp7.5 devices received upgrade to wp7.8?

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    548

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    Quote Originally Posted by Spaso Lazarevic View Post
    7.5 (NOT 7.8).
    I know that APi don't provide that, but I'm wondering if it is possible.
    As shai.i says, there is no 'small' tile in WP7.5 so it's not possible (there is only one tile size available). The Mangopollo sample shows *all* possible methods to make a small tile on WP7.8 or WP8.

    Also, not all devices got WP7.8 unfortunately, analytics from one of my apps shows 60% of users have it.

  9. #9
    Registered User
    Join Date
    Jun 2013
    Posts
    19

    Re: Change ApplicationIcon.png on the fly - Secondary Live Tile for WP 7

    to create secondary tile on click.

    ADD to include section

    using Microsoft.Phone.Shell;

    Put the following code in click event handler


    string tileParameter = "wifi "//Replace with tile name
    ShellTile tile = CheckIfTileExist(tileParameter);// Check if Tile's title has been used
    if (tile == null)
    {
    StandardTileData secondaryTile = new StandardTileData
    {
    Title = tileParameter,
    BackgroundImage = new Uri("/Wifi.png", UriKind.RelativeOrAbsolute),//replace wifi.png with ur secondary tile image
    Count = 0,
    BackContent = wifistat //replace wifistat with whatever you want to display at the back of tile
    };
    ShellTile.Create(new Uri("/MainPage.xaml?Param=" + tileParameter, UriKind.Relative), secondaryTile); // Pass tileParameter as QueryString
    } ///replace mainpage,xaml with page name where you want the user be go after the click on secondary tile

Similar Threads

  1. Dynamic Live Tile issue WP8 [WriteableBitmap]
    By Mohab_Tarek in forum Windows Phone General
    Replies: 15
    Last Post: 2013-03-14, 22:17
  2. Replies: 5
    Last Post: 2013-02-11, 10:54
  3. Tile collision..how?
    By custom_made in forum Mobile Java Games
    Replies: 4
    Last Post: 2008-09-18, 21:14
  4. Tile Studio
    By alex_crowther in forum Mobile Java General
    Replies: 3
    Last Post: 2004-12-20, 04:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×