Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

How to set up the icon in a modern button canvas app?

Like (0) ShareShare
ReportReport
Posted on 20 Feb 2025 12:03:42 by 495
Hi there,
 
Is there any way to set-up the icon in a modern button?
 
I have a collection:
 
ClearCollect(colMainMenu,
 
{Name:"Hardware", Order: 1 , ID: 1, Icon:Icon.Print },
 
{Name:"Software", Order: 2 , ID: 2, Icon: Icon.Save})
 
 
And in a gallery I put a button and I want that the icon of the button takes the value from the collection:
 
ThisItem.Icon
 
But the icon is not working and it shows just a circle.
 
 
What am I doing wrong?
Thanks for any help!
 
 
  • Verified answer
    jrletner Profile Picture
    720 Super User 2025 Season 1 on 20 Feb 2025 at 12:27:11
    How to set up the icon in a modern button canvas app?
    Modern buttons are a bit different. You don't actually use the Icon.Print. You just enter "Print". So your collection will just store that text value "Print". 
     
     
    See if that doesn't help fix your issue.
  • Suggested answer
    MS.Ragavendar Profile Picture
    1,844 on 20 Feb 2025 at 12:22:51
    How to set up the icon in a modern button canvas app?
    Great observation its wierd issue but this will be the work around for your case.
     
    Instead of setting up the Icon property, I concat both icon and Name in the Text property.
     
    Hope this will helps you!
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading started