Skip to content

Commit 0a9f374

Browse files
authored
Merge pull request #10166 from MicrosoftDocs/jasongre-avatar
Create modern-control-avatar.md
2 parents bbf5bb0 + beccae9 commit 0a9f374

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@
520520
href: ./canvas-apps/controls/modern-controls/modern-control-slider.md
521521
- name: Tabs or tab list
522522
href: ./canvas-apps/controls/modern-controls/modern-control-tabs-or-tabs-list.md
523+
- name: Avatar (preview)
524+
href: ./canvas-apps/controls/modern-controls/modern-control-avatar.md
523525
- name: Badge (preview)
524526
href: ./canvas-apps/controls/modern-controls/modern-controls-badge.md
525527
- name: Checkbox (preview)
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
title: Avatar modern control in Power Apps
3+
description: Learn about the details, properties, and examples of the avatar modern control in Power Apps.
4+
author: jasongre
5+
6+
ms.topic: reference
7+
ms.component: canvas
8+
ms.date: 05/20/2023
9+
ms.subservice: canvas-maker
10+
ms.author: jasongre
11+
12+
13+
ms.reviewer: mkaur
14+
search.audienceType:
15+
- maker
16+
contributors:
17+
- jasongre
18+
19+
---
20+
# Avatar modern control in Power Apps (preview)
21+
22+
[This article is prerelease documentation and is subject to change.]
23+
24+
A control that shows a graphic representation of a user, team, or entity.
25+
26+
## Description
27+
28+
Use the avatar control to visually represent a user, team, or entity. This control supports both image and initials formats and allows a small badge to be included to help convey status. The key properties for this control are **Name** and **Image**.
29+
30+
## General
31+
32+
**Name** - The name of the person or entity. Name is used to determine the initials displayed when there's no image and is also used for accessibility.
33+
34+
**Image** – The visual representation for the person or entity.
35+
36+
**Badge** – A small visual decoration added to convey status of the person or entity.
37+
38+
**Visible** - Whether a control appears or is hidden.
39+
40+
## Size and position
41+
42+
**[X](../properties-size-___location.md)** – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).
43+
44+
**[Y](../properties-size-___location.md)** – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).
45+
46+
**Width** - The distance between a control's left and right edges.
47+
48+
**Height** - The distance between a control's top and bottom edges.
49+
50+
## Style and theme
51+
52+
**Shape** - Whether the avatar appears with a circular or square shape.
53+
54+
**Appearance** – An avatar can have portions of itself styled for greater emphasis or to be subtle.
55+
56+
The following options are available:
57+
58+
- **Brand**: Uses the modern theme to style the avatar. The Color palette property can be used to override this color scheme.
59+
- **Neutral**: Uses a grayscale for the initials background to provide a subtle appearance.
60+
- **Colorful**: Users a color from a predefined set of colors, based on a hash of the provided Name.
61+
62+
**BasePaletteColor** - The color palette applied to a control. This impacts all surfaces of the control that render a theme color. If the value is null or zero, then the color is driven by the selected Fluent theme.
63+
64+
**Font** - The name of the family of fonts in which text appears.
65+
66+
**FontSize** - The font size of the text that appears on a control. If the value is null or zero, then the font size is driven by selected Fluent theme.
67+
68+
**FontColor** - The color of text in a control.
69+
70+
**FontWeight** - The weight of the text in a control: **Bold**, **Lighter**, **Normal**, or **Semibold**.
71+
72+
**FontItalic** - Whether the text in a control is italic.
73+
74+
**FontUnderline** - Whether a line appears under the text that appears on a control.
75+
76+
**FontStrikethrough** - Whether a line appears through the text that appears on a control.
77+
78+
## Additional properties
79+
80+
**Out of office** - Adjusts the Badge icon to show its corresponding "out of office" variant.
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+

powerapps-docs/maker/canvas-apps/controls/modern-controls/modern-controls-reference.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: yogeshgupta698
66
ms.topic: reference
77
ms.custom: canvas
88
ms.reviewer: mkaur-msft
9-
ms.date: 03/22/2023
9+
ms.date: 05/22/2024
1010
ms.subservice: canvas-maker
1111
ms.author: yogupt
1212
search.audienceType:
@@ -25,6 +25,8 @@ Configure the behavior of a modern control by setting one of its properties. Eac
2525

2626
## Modern controls
2727

28+
**[Avatar (preview)](modern-control-avatar.md)** – A control that shows a graphic representation of a user, team, or entity.
29+
2830
**[Badge (preview)](modern-controls-badge.md)** – A badge is a visual decoration for UI elements.
2931

3032
**[Button](modern-control-button.md)** – Interact with the app by clicking or tapping.

0 commit comments

Comments
 (0)