BannerIcon's Size

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:

hubtile.png

I want a smaller star so the text could be a little bit bigger


1 Reply

SA Sulthan Amanu Syncfusion Team March 28, 2022 08:40 AM UTC

Hi Rwong,


We have considered “Provide an option for changing BannerIcon size" as a feature request. We will include the feature in any of our upcoming releases.


We are closing this ticket and feedback will be open until it is implemented. You can track the status of a feature request using the following link.


Feedback link: https://www.syncfusion.com/feedback/33692/hubtile-need-to-implement-a-icon-size-support-for-the-bannericon


Regards,

Sulthan Amanu


Loader.
Up arrow icon