cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dprontnicki
Frequent Visitor

Change Shape Size

Hi All,

 

I feel like this should be easy and I'm just missing something. I am trying to set an icons OnSelect property to the following:

If(Shp_Summary_List_Sc.Height=100,Shp_Summary_List_Sc.Height=400) 

but it is not working. I want to clisk the icon, being used as a button, and change the size of a shape. Any one know why. 

 

P.S. I'm new to PowerApps

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
seadude
Memorable Member
Memorable Member

You can try:

 

Icon OnSelect: Set(varSize, 400)
Shape Height: varSize

View solution in original post

I figured it out:

 

If(varSize=100, Set(varSize,400), Set(varSize,100))

Thank you!

View solution in original post

4 REPLIES 4
seadude
Memorable Member
Memorable Member

You can try:

 

Icon OnSelect: Set(varSize, 400)
Shape Height: varSize

View solution in original post

Thank you, that works, sort of. 

 

Ultimatley what I am trying to accopblish is: If shape height is 100 make shape height 400, if shape height is 400 make 100. All from the same button (icon) OnSlect. 

 

 

I figured it out:

 

If(varSize=100, Set(varSize,400), Set(varSize,100))

Thank you!

View solution in original post

do you have to declare the icon height as varSize?

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,540)