Search code examples
windows-phone-7silverlight-toolkit

Hubtile.Title upside down


I'm using the HubTile control from the silverlight toolkit and somehow the title is displayed upside down in my own app, but also in the preview. See Screenshots below.

I'm generating the tile from code behind and adding it to a WrapPanel control:

BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(stream);

var hubtile = new HubTile()
{
    Source = bitmap,
    Height = AppConfig.TileHeight,
    Width = AppConfig.TileWidth,
    Background = App.Current.Resources["PhoneAccentBrush"] as SolidColorBrush,
    Margin = new Thickness(5),
    IsFrozen = true,
    Title = "Lorem Ipsum"
};

wpTiles.Children.Add(hubtile);

enter image description here enter image description here


Solution

  • The upside down part is the back of the tile.
    It is visible because you haven't set a background to the front of the tile.

    Be sure to set the background of the front and back of the tile (to something that isn't transparent) to avoid this scenario.