Power Apps Modern Header Control – How to Use

A primary control called Power Apps Modern Header Control makes creating an interface for a typical application simple. In this tutorial, I will explain a modern header control, its important properties, and how to add it to a Power Apps canvas application.

We will also discuss how to use a modern header control in Power Apps with a simple example. I will also tell you how to activate the Canvas application’s Power Apps Modern Controls.

Power Apps Modern Header Control

This modern header is a Power Apps control used for headings or banners. Before while creating a Power Apps application, we were creating a banner/header component for it. But now, Microsoft has made it easy for users to use this control directly instead of creating any component.

This control requires no setup and adapts to themes that use dynamic responsiveness and modern theming by resizing to fit the parent container or application.

We have to manually add the header to every screen in the app because it doesn’t automatically reappear.

The Header control offers several distinctive style options, supports a logo and a page title, and shows the user image. This control’s three primary properties are Title, OnSelectLogo, and Logo.

Refer to the image below:

Modern Header Control in Power Apps

Power Apps Modern Header Control Properties

Below are some of the important properties of the Power Apps Modern Header:

It gives the name of the font family in which the text is shown.Description
TitleThe text is displayed in the header. The default value is the current screen name.
Header Modern in Power Apps
Show title/IsTitleVisibleSpecifies whether the title is displayed in the header.
LogoThe image/picture is displayed in the header.
Modern Header in Power Apps
Show logo/IsLogoVisibleSpecifies whether the logo image is displayed.
TooltipThe text that displays when we hover over the logo.
Modern Header PowerApps
Profile picture/IsProfilePictureVisibleWhether the user picture is displayed in the header. By default, it will display the current user profile picture.
If you hover over this profile picture, it will display the user name and email.
PowerApps Modern Header
Color palette/BasePaletteColorThe color palette is applied to a control, impacting all surfaces of the control that render a theme color. This property has no effect if the ThemeStyle property is set to Neutral.
Power Apps Header Control
StyleA variant of the header color depends on the theme colors. There are three different styles:
1. Neutral
Power Apps Modern Header
2. Primary

Modern header Power Apps
3. Light

Modern Header in PowerApps
FontIt gives the name of the font family that the text is shown in.
Font size/TitleFontSizeThe font size of the title that appears on a control. If the value is null or zero, then the font size is driven by the selected Fluent theme.
Position– Distance between the control’s left side and the screen’s left edge.
Y – Distance between the top of the control and the top edge of the screen.
SizeWidth – The distance between the control’s left and right sides.
Height – Distance between the control’s top and bottom.
VisibleSpecifies whether to display or hide the Modern header control.
OnSelectLogo Actions to perform when the user selects the logo.
DisplayModeThere are three display modes:
1. DisplayMode.Edit – The user can edit the header
2. DisplayMode.View – Users only can be allowed to see the header
3. DisplayMode.Disabled – The header is greyed out with disabled mode

These are the essential properties of a modern Power Apps header control.

Add Power Apps Modern Header Control

The Power Apps canvas app hides all modern controls by default. You must enable the Modern Controls and Themes option from the app’s Settings page to use them.

Go to More commands () -> Settings -> Updates -> New -> Enable Modern controls and themes as shown below.

Power Apps Modern Header Control

Next, expand the + Insert tab (from the top) -> expand Layout -> Select the Header control as below.

Add Power Apps Modern Header

Once added, the Modern Header control will appear on the screen with its default name, Header1. We can rename it to suit your requirements better.

How to Use Power Apps Modern Header Control

Let’s see how we can use the modern header control in the Power Apps canvas application.

As shown in the screenshot below, I have created a modern header control for my current screen. If you want to use the same header on every screen of the application, you need to copy it, move to the next screen, and paste it there.

Modern Header Control in PowerApps

Here, I will describe each control that I have applied in the above Power Apps Modern Header Control:

1. Title: Provide your app header text using the Title property and set the font size as per your need (For example, 30).

How to Use Power Apps Modern Header

2. Logo: To add your desired logo in the modern header, you can go to the Logo property and upload any logo from your system or stock images.

How to Use Modern Header in Power Apps

3. Suppose you want to navigate to other screens (let’s say the Home screen) from the current screen, then add a Home icon and set its OnSelect property to the code below:

OnSelect = Navigate(Screen1,ScreenTransition.Cover)

Where,

Screen1 = Provide the screen name where you want to navigate when user will press the home icon button

PowerApps Modern Header Control

If you want to use this modern header throughout the application, the best way is to add a Power Apps Container control instead of adding one individual control in the header.

Add a Container control and insert this modern header into it. To reuse this header in the application, copy the container and paste it into your desired screen. That’s it.

This way, we can use Power Apps modern header control.

Additionally, you may like some more Power Apps tutorials:

I hope this article helped you to understand all about the header modern control in Power Apps, it’s properties and how to use it with a simple scenario.

>