web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / I need help with movin...
Power Apps
Unanswered

I need help with moving image (picture) in my powerapps work

(0) ShareShare
ReportReport
Posted on by 8

So i have these 4 pictures in my work that i need to invert the order, i already know how to rotate them, but i still need a way to move them to diffrent position in my screen.

I use button to rotate the images in my work, but i need solution to move the images to the right side, so X position needs to be increased some amount.

But i havent been able to get it to work, any ideas?

Also im not that good with the software, so simplier the solution the better for me.

And if someone repplies to this thanks in advance.

Categories:
I have the same question (0)
  • BhargavPatel Profile Picture
    660 Moderator on at

    Can you please add screenshots to show how it looks currently and how you want it to be?

  • Cyyder Profile Picture
    8 on at

    Cyyder_0-1713110343355.png

    theres picture what im trying to do.

  • BhargavPatel Profile Picture
    660 Moderator on at

    Can you also show the tree view of those controls?

    Snag_1143ee9f.png

  • Cyyder Profile Picture
    8 on at

    Currently cant, but i have all of those images inside a group

  • BhargavPatel Profile Picture
    660 Moderator on at

    So you want them to move on click of a button or you want to move them for good?

  • Cyyder Profile Picture
    8 on at

    So the parts needs to be moved when i press the button that i have in my app. I can rotate the parts 180 degree with that button, but i havent been able to move them x direction yet.

  • BhargavPatel Profile Picture
    660 Moderator on at

    So, instead of placing images in a container or a group. I loaded them into a collection and then to a gallery. I gave each record an order number and sorted the gallery by the Order. I added left and right arrow buttons to change the Order of the selected record in the collection.

    BD5A76E4-CA92-4E94-9FAD-9C2A231AAE7F.GIF


    Here are the images I used

    Snag_13fe666c.png     

     

    Tree view of controls on the Screen, and their names.

    BhargavPatel_0-1713158349130.png

     

     

    Items property of the Horizontal Gallery (galPowerPlatformIcons)

    Sort(
     colPPIcons,
     Order,
     SortOrder.Ascending
    )

     

    Default property of the gallery

    varSelected


    TemplateFill property of the Gallery to highlight which record is selected.

    If(
     Self.IsSelected,
     Color.LightGoldenRodYellow,
     RGBA(
     0,
     0,
     0,
     0
     )
    )

     

    OnVisible property of the Screen to load the collection:

    ClearCollect(
     colPPIcons,
     {
     Image: AIBuilder_scalable,
     Title: "AIBuilder",
     Order: 1
     },
     {
     Image: Dataverse_scalable,
     Title: "Dataverse",
     Order: 2
     },
     {
     Image: PowerApps_scalable,
     Title: "PowerApps_scalable",
     Order: 3
     },
     {
     Image: PowerAutomate_scalable,
     Title: "PowerAutomate",
     Order: 4
     },
     {
     Image: PowerBI_scalable,
     Title: "PowerBI",
     Order: 5
     },
     {
     Image: PowerFx_scalable,
     Title: "PowerFx",
     Order: 6
     },
     {
     Image: PowerPages_scalable,
     Title: "PowerPages",
     Order: 7
     },
     {
     Image: PowerPlatform_scalable,
     Title: "PowerPlatform",
     Order: 8
     },
     {
     Image: PowerVirtualAgents_scalable,
     Title: "PowerVirtualAgents",
     Order: 9
     }
    )


    OnSelect property of the Left Arrow Icon:

    Set(
     varOrder,
     Value(galPowerPlatformIcons.Selected.lblOrder_PPI.Text)
    );
    ClearCollect(
     colChangeOrder,
     Filter(
     colPPIcons,
     Order = varOrder - 1
     )
    );
    Patch(
     colPPIcons,
     LookUp(
     colPPIcons,
     Title = galPowerPlatformIcons.Selected.lblTitle_PPI.Text
     ),
     {Order: varOrder - 1}
    );
    ForAll(
     colChangeOrder,
     Patch(
     colPPIcons,
     ThisRecord,
     {Order: ThisRecord.Order + 1}
     )
    );
    Set(
     varSelected,
     LookUp(
     colPPIcons,
     Order = varOrder - 1
     )
    )

     

    OnSelect property of Right Arrow Icon:

    Set(
     varOrder,
     Value(galPowerPlatformIcons.Selected.lblOrder_PPI.Text)
    );
    ClearCollect(
     colChangeOrder,
     Filter(
     colPPIcons,
     Order = varOrder + 1
     )
    );
    Patch(
     colPPIcons,
     LookUp(
     colPPIcons,
     Title = galPowerPlatformIcons.Selected.lblTitle_PPI.Text
     ),
     {Order: varOrder + 1}
    );
    ForAll(
     colChangeOrder,
     Patch(
     colPPIcons,
     ThisRecord,
     {Order: ThisRecord.Order - 1}
     )
    );
    Set(
     varSelected,
     LookUp(
     colPPIcons,
     Order = varOrder + 1
     )
    )

     

    Not the cleanest code, but gives you an idea.

  • Cyyder Profile Picture
    8 on at

    Ok, thanks! I need to take look at that at somepoint, when i have time.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard