Container Control

Containers vs Groups in Power Apps

Recently a new experimental feature, Container Control, has been released in Power Apps.

Container Control

Container Control

Once enabled an great update will be available to you from the Input menu. Note that it is still experimental, however this is a very valuable addition to the already great Power Platform.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Container Control in Input menu

When you add a container control to your app you will find quite quickly the benefits.

As shown below you can add controls to the container and initially you might think hat this is just the same as grouping with a new name.But a container is more.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Position relative to Container

Have you noticed the position of the Label1 control? it is set to X = 40 and Y = 40. This shows that the positioning is relative to the cotnainer ratehr than the screen.

Comparing this to the grouping of controls we will see that groups leave the controls inside a group use positioning relative to the screen.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Groups have positioning relative to Screen

Release a container

You can also release a container. This means that the container control is removed and the controls inside the container are positioned on the page again.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Release Container

Converting groups into containers

Ok, many of your apps will have groups and these groups you may want t convert to containers as Containers will help you simplify your app. To do this select the group and then select the Add to container option.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Add to Container

This now converts the Group into a container and you can take advantage of the container control.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Group Converted to Container

Nested Containers

Once you have created containers you can also create nested containers. All the same relative positioning options are still available inside the nested containers.

Containers vs Groups in Power Apps Microsoft Office 365, Microsoft Power Apps, Microsoft Power Platform Nested Containers

For more information

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-container

https://sharepains.com/2018/03/19/powerapps-grouping-fields-on-forms/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: