Hello,
How can I change the size of the Banner's icon?
it seems there isn't any property to achieve this.
I'm creating HubTiles using the following code:
private HubTile AddProgramTile(string name, string programName, string path, bool isFavorite)
{
TextItem title = new TextItem
{
Text = name,
TextColor = Color.White
};
TextItem banner = new TextItem
{
Text = programName,
TextColor = Color.White,
Font = new Font("Calibri",7,FontStyle.Bold)
};
ContextMenu cm = new ContextMenu();
cm.MenuItems.Add(new MenuItem(isFavorite ? "Remove from Favorites" : "Add to Favorites", MenuItemFavorite));
HubTile tile = new HubTile
{
Name = programName,
Size = new Size(100, 100),
TileType = HubTileType.DefaultTile,
Tag = path,
Title = title,
ShowBanner = true,
Banner = banner,
BannerColor = Color.FromArgb(69, 147, 56),
BannerHeight = 30,
ShowBannerIcon = true,
BannerIcon = isFavorite ? StarFav : Star,
BackColor = Color.FromArgb(120, 198, 106),
EnableTileSlideEffect = true,
ContextMenu = cm,
EnableSelectionMarker = false
};
tile.MouseClick += Tile_Click;
return tile;
}
This is and example of the generated control right now:
I want a smaller star so the text could be a little bit bigger