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 / How to achieve the des...
Power Apps
Unanswered

How to achieve the desired behaviour in a budget tracker app, where the screen adjusts automatically based on whether the menu component is open or closed

(0) ShareShare
ReportReport
Posted on by 11

Hello Folks,

       How can I achieve; when the menu component is open (Image 1) in budget tracker app, the screen should be automatically adjust within it.

However, when the Menu component is closed (Image 2 ) in budget tracker app, the screen should be automatically adjust with full screen. should I make the app by using container or do you have any ideas for that solution pls let me know it would helpful. 

 

Thanks

 

      

        

close Bt.png
Open BT.png
Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @sona_098 ,

     

    My method:

     

    Insert a Checkbox control and place the control in front of your Hamburger icon. Increase the CheckboxSize property of this control so that the checkbox is almost the same size as the Hamburger icon. Then set the Set FocusedBorderThickness property of the Checkbox to 0, and set the following properties to Color.Transparent:

     

    • Fill
    • CheckmarkFill
    • CheckboxBackgroundFill
    • Color
    • CheckboxBorderColor
    • HoverColor

    Set the Visible property of the Menu component to:

     

     

    Checkbox1.Value

     

     

    Next, you will need to apply a condition to the Width and X properties of the Container. For example, if we apply the below expression onto the Container, the Container will move to position 40 if the checkbox has been checked, and position 120 if unchecked.

     

     

    If(Checkbox1.Value, 40, 120)

     

     

    Note however, this will just adjust the Container. If you want the individual controls inside the container to also adjust, then you will need to apply the same logic for each of your controls and spend some time playing around with it until you get the controls into the exact position and width you need.

     

    In addition, if you manually move or adjust the width any of the controls, any expression previous entered in those properties will be removed.

     

    example (2).gif

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard