对于TileItem DevExpress - 默认情况下,我们在左上角对齐文本。需要将文本对齐到右下角并放置图标

时间:2016-12-24 18:41:50

标签: devexpress

Tile Expected UI

所需效果如图所示 我们有DevExpress Control TileItem。我们希望文本显示在左下角,还需要在右下角放置一个图标

1 个答案:

答案 0 :(得分:0)

我建议您使用相应的TextAlignment / ImageToTextAlignment属性:

tileItemElement1.Text = "My Tile Item Text";
tileItemElement1.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.BottomLeft;
tileItemElement1.Image = /* some image */;
tileItemElement1.ImageToTextAlignment = DevExpress.XtraEditors.TileControlImageToTextAlignment.Right;

相关帮助主题:Tile Item Structure