How to add existing controls and groups to a container control in Power Apps canvas apps

This blog will be a quick tip on how to add existing controls to a containers in Canvas apps.

In the screenshot below, I have a Vertical container containing 3 buttons and three text input controls outside the container.

Add controls to container in power apps canvas apps

I want to move the text input controls inside the container. If I check for options in the Text input control, I don’t have the option to add them to container.

Add controls to container in power apps canvas apps

Wondering how to move them inside the container? Well the traditional method of cut and paste comes to the rescue here.

Select the controls that you want to move to the container choose ‘Cut’ from the menu options.

Add controls to container in power apps canvas apps

Once done, make sure to select the container and then paste.

Add controls to container in power apps canvas apps

And your controls will be moved inside the container.

Add controls to container in power apps canvas apps

Let’s explore one more scenario. If you have been working with Power Apps for a long time, you must have used groups. Groups were a great way to tag multiple controls together before the advent of container controls in Power Apps framework.

I have a group containing a label and a button.

Add controls to container in power apps canvas apps

Launch the menu options for the group and you have an option ‘Add to container’

Add controls to container in power apps canvas apps

The moment you do that, it does not add to any existing container. The group is converted to a container and all the controls inside the group are moved to the container.

Add controls to container in power apps canvas apps

Hope this helped. You will also like the below posts.

Debajit Dutta
Business Solutions MVP