Hubtile.Title倒置

时间:2012-03-04 08:10:11

标签: windows-phone-7 silverlight-toolkit

我正在使用Silverlight工具包中的HubTile控件,不知何故,标题会在我自己的应用程序中颠倒显示,但也会在预览中显示。见下面的截图。

我正在从后面的代码生成磁贴并将其添加到WrapPanel控件:

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

1 个答案:

答案 0 :(得分:3)

倒置部分是瓷砖的背面 它是可见的,因为您还没有在图块的前面设置背景。

请务必设置图块正面和背面的背景(不透明)以避免出现这种情况。