cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RMC-Pro
Helper II
Helper II

A horizontal gallery of builtin-icons

Hello Community,

 

I would like to use a Gallery to show a group of selected Built-In-Icons (e.g., collected in Collection). Just icons. Is that doable?

Any solution/hint would be much appreciated.

Tnxs

br

@RMC-Pro

1 ACCEPTED SOLUTION

Accepted Solutions
Florian_Kleinz
Resolver II
Resolver II

Hi,

 

sure this is possible and even necessary if you for example want to create a navigation component.

Here is an example for a collection where I store the icons and the screen to navigate to.

 

ClearCollect(
    config;
    {
        ScreenID: 1;
        ScreenName: "Overview";
        Icon: Icon.Home;
        Screen: Overview
    };
    {
        ScreenID: 2;
        ScreenName: "Time";
        Icon: Icon.Clock;
        Screen: 'Travel and Time'
    };
    {
        ScreenID: 3;
        ScreenName: "Shopping Cart";
        Icon: Icon.ShoppingCart;
        Screen: 'Shopping Cart'
    }
)

 

Of course you could only collect these items.

ClearCollect(
    colIcons;
    {Icon: Icon.Home};
    {Icon: Icon.Clock};
    {Icon: Icon.ShoppingCart}
)

 

Then Place an icon inside the gallery and set the Icon.Icon = ThisItem.Icon.

Gallery.Items = config or colIcons.

 

Hope this helps.

 

Best regards

Florian

 

View solution in original post

5 REPLIES 5
Florian_Kleinz
Resolver II
Resolver II

Hi,

 

sure this is possible and even necessary if you for example want to create a navigation component.

Here is an example for a collection where I store the icons and the screen to navigate to.

 

ClearCollect(
    config;
    {
        ScreenID: 1;
        ScreenName: "Overview";
        Icon: Icon.Home;
        Screen: Overview
    };
    {
        ScreenID: 2;
        ScreenName: "Time";
        Icon: Icon.Clock;
        Screen: 'Travel and Time'
    };
    {
        ScreenID: 3;
        ScreenName: "Shopping Cart";
        Icon: Icon.ShoppingCart;
        Screen: 'Shopping Cart'
    }
)

 

Of course you could only collect these items.

ClearCollect(
    colIcons;
    {Icon: Icon.Home};
    {Icon: Icon.Clock};
    {Icon: Icon.ShoppingCart}
)

 

Then Place an icon inside the gallery and set the Icon.Icon = ThisItem.Icon.

Gallery.Items = config or colIcons.

 

Hope this helps.

 

Best regards

Florian

 

Hello @Florian_Kleinz,

 

great. I tried (your suggestion a bit modified) and it works.

 

At this time I believe it might be I will need components afterall. As my Icon.Onelect is not navigation to other screen but some actions on the same screen. However your suggestion offers what I was asking for.  I am marking your answer as a solution.

 

Additionally, I would also need some CoreControles (e.g., Slider, ComboBox, Radio) included into collection. Is that also possible - I don't know how to address the controls? I found something like 'Microsoft.CoreControls', am I in (aprox) right direction?

 

Tnxs

br

@RMC-Pro

Hello @Florian_Kleinz,

 

great. I tried (your suggestion a bit modified) and it works.

 

At this time I believe it might be I will need components afterall. As my Icon.Onelect is not navigation to other screen but some actions on the same screen. However your suggestion offers what I was asking for.  I am marking your answer as a solution.

 

Additionally, I would also need some CoreControles (e.g., Slider, ComboBox, Radio) included into collection. Is that also possible - I don't know how to address the controls? I found something like 'Microsoft.CoreControls', am I in (aprox) right direction?

 

Tnxs

br

@RMC-Pro

Hello,

 

you can add every control inside a gallery.

It depends what you want to do with these controls.

In this case you need to use PATCH to update your collection.

 

Best regards

Hi @Florian_Kleinz ,

I know I can put Contros into Gallery, I was thinking of building a Collection with mixure of Icons and Controls which then I would put into a Gallery - scrolling left and right (having cool Menu Line). That seems doesn't work.

 

But everything else, with Icons (scrolling left-right, different OnSelect - on the level of Gallery, ...), works as a hoped for.

 

Tnxs

br

@RMC-Pro

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,408)