Introduction to modern Header control
Header control is one of the new modern controls that came into existence not too long ago. Prior to this control, I used to wish if there was a way to make headers consistent not just across all screens within an app but across all applications within an enterprise. I had even built a component for the same but it wasn't the best, to say the least. Then came this control with so many configurations that it solved all my consistency issues.
Properties
- Title - The title text of the header. It defaults to the screen name.
- IsTitleVisible - Visibility of the title text
- Logo - The image to show
- IsLogoVisible - Visibility of the title logo
- IsProfilePictureVisible - Visibility of the user's profile picture. The image is controlled by the UserImage property which defaults to User().Image.
- Style - There are 3 different options:
- 'Header.Style'.Primary (default)
- 'Header.Style'.Light
- 'Header.Style'.Neutral
- OnSelectLogo - The navigation or any other action that should happen when the user clicks on the logo
Using modern Header control
The Header control is pretty straightforward to use. Here are the 3 examples of the styles:
Stay tuned for the remaining modern controls!
To read the official documentation of modern controls, click here.