0

Is it possible to set xaml inside the FlipTileData.BackContent? Basically I just want to be able to set a full layout with multiple lines, control over spacing and layout and maybe an inline image. Is this possible or is the FlipTileData.BackContent limited to text only?

This is my current code for BackContent but I can not get anything other than just text to work in the there.

private FlipTileData GetSecondaryTileData()
    {
        FlipTileData tileData = new FlipTileData
        {
            Title = resortforTile.ListName,
            BackgroundImage = new Uri("/Assets/Tiles/MountainTile.png", UriKind.Relative),
            BackContent = ""
        };

        return tileData;
    }
Michael Peberdy
  • 83
  • 1
  • 1
  • 9
  • This should be text. – Alex Sorokoletov Aug 18 '14 at 19:04
  • From what I saw in the docs it only accepts a string, so there's no way by default to display content. You could at minimum provide linebreaks though with ascii like dec "line one line two" or hex "line onea;line two" for a little bit of layout control but not much. – Chris W. Aug 18 '14 at 19:06

1 Answers1

0

You cannot set XAML as BackContent but you can render the XAML into an image and set the BackBackgroundImage to this image.

More info at http://www.jayway.com/2012/04/03/advanced-transparent-live-tiles-with-count-for-windows-phone/

Igor Kulman
  • 16,211
  • 10
  • 57
  • 118