You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/controls/control-add-picture.md
+58-33Lines changed: 58 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -24,86 +24,97 @@ Takes a photo or loads images from the local device.
24
24
## Description
25
25
With this control users can take photos or upload image files from their device and update the data source with this content. On a mobile device the user is presented with the device's choice dialog to choose between taking a photo or selecting one already available.
26
26
27
-
This control is a composite control, made up of two controls. Press or tap once to select the outer control that shows the image that has been loaded. Press or tap again to select the inner label control.
27
+
This control is a grouped control containing two controls: an **Image** and an **Add media button**. The **Image** control shows the uploaded image or a placeholder if no image has been uploaded. The **Add media button** prompts for an image to be uploaded.
28
28
29
-
## Outer control properties
30
-
These properties apply to the outer control.
29
+
See the [Image control reference](control-image.md) for **Image** properties.
30
+
31
+
## Add media button properties
32
+
**[AccessibleLabel](properties-accessibility.md)** – Label for screen readers. Should describe the purpose of adding a picture.
33
+
34
+
**[Align](properties-text.md)** – The ___location of text in relation to the horizontal center of its control.
31
35
32
36
**[BorderColor](properties-color-border.md)** – The color of a control's border.
33
37
34
38
**[BorderStyle](properties-color-border.md)** – Whether a control's border is **Solid**, **Dashed**, **Dotted**, or **None**.
35
39
36
40
**[BorderThickness](properties-color-border.md)** – The thickness of a control's border.
37
41
38
-
**[DisplayMode](properties-core.md)** – Whether the control allows user input (**Edit**), only displays data (**View**), or is disabled (**Disabled**).
42
+
**ChangePictureText** – Text that appears on the button when an image has been uploaded.
43
+
44
+
**[Color](properties-color-border.md)** – The color of text in a control.
39
45
40
46
**[DisabledBorderColor](properties-color-border.md)** – The color of a control's border if the control's **[DisplayMode](properties-core.md)** property is set to **Disabled**.
41
47
48
+
**[DisabledColor](properties-color-border.md)** – The color of text in a control if its **[DisplayMode](properties-core.md)** property is set to **Disabled**.
49
+
42
50
**[DisabledFill](properties-color-border.md)** – The background color of a control if its **[DisplayMode](properties-core.md)** property is set to **Disabled**.
43
51
52
+
**[DisplayMode](properties-core.md)** – Whether the control allows user input (**Edit**), only displays data (**View**), or is disabled (**Disabled**).
53
+
44
54
**Error** - If there is a problem uploading an image, this property will contain an appropriate error string.
45
55
46
56
**[Fill](properties-color-border.md)** – The background color of a control.
47
57
48
-
**[Height](properties-size-___location.md)** – The distance between a control's top and bottom edges.
58
+
**[FocusedBorderColor](properties-color-border.md)** – The color of a control's border when the control is focused.
49
59
50
-
**[HoverBorderColor](properties-color-border.md)** – The color of a control's border when the user keeps the mouse pointer on that control.
60
+
**[FocusedBorderThickness](properties-color-border.md)** – The thickness of a control's border when the control is focused.
51
61
52
-
**[HoverFill](properties-color-border.md)** – The background color of a control when the user keeps the mouse pointer on it.
62
+
**[Font](properties-text.md)** – The name of the family of fonts in which text appears.
53
63
54
-
**Media** – An identifier for the clip that an audio or video control plays.
64
+
**[FontWeight](properties-text.md)** – The weight of the text in a control: **Bold**, **Semibold**, **Normal**, or **Lighter**.
55
65
56
-
**[OnSelect](properties-core.md)** – How the app responds when the user taps or clicks a control.
66
+
**[Height](properties-size-___location.md)** – The distance between a control's top and bottom edges.
57
67
58
-
**[PressedBorderColor](properties-color-border.md)** – The color of a control's border when the user taps or clicks that control.
68
+
**[HoverBorderColor](properties-color-border.md)** – The color of a control's border when the user keeps the mouse pointer on that control.
59
69
60
-
**[PressedFill](properties-color-border.md)** – The background color of a control when the user taps or clicks that control.
70
+
**[HoverColor](properties-color-border.md)** – The color of the text in a control when the user keeps the mouse pointer on it.
61
71
62
-
**[Visible](properties-core.md)** – Whether a control appears or is hidden.
72
+
**[HoverFill](properties-color-border.md)** – The background color of a control when the user keeps the mouse pointer on it.
63
73
64
-
**[Width](properties-size-___location.md)** – The distance between a control's left and right edges.
74
+
**[Italic](properties-text.md)** – Whether the text in a control is italic.
65
75
66
-
**[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).
76
+
**Media** – An identifier for the clip that an audio or video control plays.
67
77
68
-
**[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).
78
+
**[OnChange](properties-core.md)** – How the app responds when the user changes the value of a control (for example, by adjusting a slider).
79
+
80
+
**[OnSelect](properties-core.md)** – How the app responds when the user taps or clicks a control.
69
81
70
-
## Inner text properties
71
-
These properties apply to the inner label control that by default says "Tap or click to add a picture". To select this inner control, press or tap the **Add picture** control once, and then again.
82
+
**[Padding](properties-size-___location.md)** – The distance between the text on an import or export button and the edges of that button.
72
83
73
-
**[Align](properties-text.md)** – The ___location of text in relation to the horizontal center of its control.
84
+
**[PressedBorderColor](properties-color-border.md)** – The color of a control's border when the user taps or clicks that control.
74
85
75
-
**[Color](properties-color-border.md)** – The color of text in a control.
86
+
**[PressedColor](properties-color-border.md)** – The color of text in a control when the user taps or clicks that control.
76
87
77
-
**[DisabledColor](properties-color-border.md)** – The color of text in a control if its **[DisplayMode](properties-core.md)** property is set to **Disabled**.
88
+
**[PressedFill](properties-color-border.md)** – The background color of a control when the user taps or clicks that control.
78
89
79
-
**[Font](properties-text.md)** – The name of the family of fonts in which text appears.
90
+
**[Reset](properties-core.md)** – Whether a control reverts to its default value.
80
91
81
-
**[FontWeight](properties-text.md)** – The weight of the text in a control: **Bold**, **Semibold**, **Normal**, or **Lighter**.
92
+
**[Size](properties-text.md)** – The font size of the text that appears on a control.
82
93
83
-
**[HoverColor](properties-color-border.md)** – The color of the text in a control when the user keeps the mouse pointer on it.
94
+
**[Strikethrough](properties-text.md)** – Whether a line appears through the text that appears on a control.
84
95
85
-
**[Italic](properties-text.md)** – Whether the text in a control is italic.
96
+
**[TabIndex](properties-accessibility.md)** – Keyboard navigation order in relation to other controls.
86
97
87
-
**[OnChange](properties-core.md)** – How the app responds when the user changes the value of a control (for example, by adjusting a slider).
98
+
**[Text](properties-core.md)** – Text that appears on the button when an image has not been uploaded.
88
99
89
-
**[Padding](properties-size-___location.md)** – The distance between the text on an import or export button and the edges of that button.
100
+
**[Tooltip](properties-core.md)** – Explanatory text that appears when the user hovers over a control.
90
101
91
-
**[PressedColor](properties-color-border.md)** – The color of text in a control when the user taps or clicks that control.
102
+
**[Underline](properties-text.md)** – Whether a line appears under the text that appears on a control.
92
103
93
-
**[Size](properties-text.md)** – The font size of the text that appears on a control.
104
+
**[VerticalAlign](properties-text.md)** – The ___location of text on a control in relation to the vertical center of that control.
94
105
95
-
**[Strikethrough](properties-text.md)** – Whether a line appears through the text that appears on a control.
106
+
**[Visible](properties-core.md)** – Whether a control appears or is hidden.
96
107
97
-
**[Text](properties-core.md)** – Text that appears on a control or that the user types into a control.
108
+
**[Width](properties-size-___location.md)** – The distance between a control's left and right edges.
98
109
99
-
**[Underline](properties-text.md)** – Whether a line appears under the text that appears on a control.
110
+
**[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).
100
111
101
-
**[VerticalAlign](properties-text.md)** – The ___location of text on a control in relation to the vertical center of that control.
112
+
**[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).
1. Add an **Add picture** control, and then triple-click it.
109
120
@@ -124,3 +135,17 @@ These properties apply to the inner label control that by default says "Tap or c
124
135
125
136
Use the **[SaveData](../functions/function-savedata-loaddata.md)** function to save the images locally or the **[Patch](../functions/function-patch.md)** function to update a data source.
126
137
138
+
139
+
## Accessibility guidelines
140
+
The same guidelines for **[Button](control-button.md)** and **[Image](control-image.md)** apply. In addition, consider the following:
141
+
142
+
### Color contrast
143
+
***Add media button** must have adequate contrast between its text and background. Since the uploaded image may have varying colors, use an opaque **[Fill](properties-color-border.md)** on the **Add media button** to ensure consistent contrast.
144
+
145
+
### Screen reader support
146
+
***Add media button** must have **Text** and **ChangePictureText** that prompts the user to add or change a picture.
147
+
148
+
### Keyboard support
149
+
***Add media button** must have **[TabIndex](properties-accessibility.md)** of zero or greater so that keyboard users can navigate to it.
150
+
***Add media button** must have clearly visible focus indicators. Use **[FocusedBorderColor](properties-color-border.md)** and **[FocusedBorderThickness](properties-color-border.md)** to achieve this.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/controls/control-attachments.md
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ An **Attachments** control lets you open files stored on a data source as well a
48
48
**[OnSelect](properties-core.md)** – How the app responds when the user clicks on an attachment.
49
49
50
50
## Additional properties
51
-
**AccessibleLabel** – The label announced by screen readers.
51
+
**[AccessibleLabel](properties-accessibility.md)** – Label for screen readers. Should describe the purpose of the attachments.
52
52
53
53
**AddAttachmentText** – The label text for the link used to add a new attachment.
54
54
@@ -60,12 +60,18 @@ An **Attachments** control lets you open files stored on a data source as well a
60
60
61
61
**[DisplayMode](properties-core.md)** – Whether the control allows adding and deleting files (**Edit**), only displays data (**View**), or is disabled (**Disabled**).
62
62
63
+
**[FocusedBorderColor](properties-color-border.md)** – The color of a control's border when the control is focused.
64
+
65
+
**[FocusedBorderThickness](properties-color-border.md)** – The thickness of a control's border when the control is focused.
66
+
63
67
**[Height](properties-size-___location.md)** – The distance between a control's top and bottom edges.
64
68
65
69
**MaxAttachmentsText** – The text that replaces the "Attach file" link when the control contains the maximum number of files allowed.
66
70
67
71
**NoAttachmentsText** – Informational text shown to the user when there are no files attached.
68
72
73
+
**[TabIndex](properties-accessibility.md)** – Keyboard navigation order in relation to other controls.
74
+
69
75
**[Visible](properties-core.md)** – Whether a control is visible or hidden.
70
76
71
77
**[Width](properties-size-___location.md)** – The distance between a control's left and right edges.
@@ -86,4 +92,31 @@ An **Attachments** control lets you open files stored on a data source as well a
86
92
87
93
The Attachments field associated with the SharePoint list will appear in the form.
88
94
89
-
Don't know how to [add and configure a control](../add-configure-controls.md)?
95
+
[Learn how to add and configure a control.](../add-configure-controls.md)
96
+
97
+
98
+
## Accessibility guidelines
99
+
### Color contrast
100
+
There must be adequate color contrast between:
101
+
***ItemColor** and **ItemFill**
102
+
***ItemHoverColor** and **ItemHoverFill**
103
+
***ItemPressedColor** and **ItemPressedFill**
104
+
***AddedItemColor** and **AddedItemFill**
105
+
***RemovedItemColor** and **RemovedItemFill**
106
+
***ItemErrorColor** and **ItemErrorFill**
107
+
***AddAttachmentColor** and **Fill**
108
+
***MaxAttachmentsColor** and **Fill**
109
+
***NoAttachmentsColor** and **Fill**
110
+
111
+
This is in addition to the standard color contrast requirements.
***[TabIndex](properties-accessibility.md)** must be zero or greater so that keyboard users can navigate to it.
122
+
* Focus indicators must be clearly visible. Use **[FocusedBorderColor](properties-color-border.md)** and **[FocusedBorderThickness](properties-color-border.md)** to achieve this.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/controls/control-audio-video.md
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ An **Audio** control plays a sound clip from a file, a recording from a **[Micro
32
32
**ShowControls** – Whether an audio or video player shows, for example, a play button and a volume slider, and a pen control shows, for example, icons for drawing, erasing, and clearing.
33
33
34
34
## Additional properties
35
+
**[AccessibleLabel](properties-accessibility.md)** – Label for screen readers. Should be the title of the video or audio clip.
36
+
35
37
**AutoPause** – Whether an audio or video clip automatically pauses if the user navigates to a different screen.
36
38
37
39
**AutoStart** – Whether an audio or video control automatically starts to play a clip when the user navigates to the screen that contains that control.
@@ -48,6 +50,10 @@ An **Audio** control plays a sound clip from a file, a recording from a **[Micro
48
50
49
51
**[Fill](properties-color-border.md)** – The background color of a control.
50
52
53
+
**[FocusedBorderColor](properties-color-border.md)** – The color of a control's border when the control is focused.
54
+
55
+
**[FocusedBorderThickness](properties-color-border.md)** – The thickness of a control's border when the control is focused.
56
+
51
57
**[Height](properties-size-___location.md)** – The distance between a control's top and bottom edges.
52
58
53
59
**[Image](properties-visual.md)** – The name of the image that appears in an image, audio, or microphone control.
@@ -70,6 +76,8 @@ An **Audio** control plays a sound clip from a file, a recording from a **[Micro
70
76
71
77
**Time** – A media control's current position.
72
78
79
+
**[TabIndex](properties-accessibility.md)** – Keyboard navigation order in relation to other controls.
80
+
73
81
**[Tooltip](properties-core.md)** – Explanatory text that appears when the user hovers over a control.
74
82
75
83
**[Visible](properties-core.md)** – Whether a control appears or is hidden.
@@ -100,3 +108,31 @@ An **Audio** control plays a sound clip from a file, a recording from a **[Micro
100
108
1. Add a **Video** control, and set its **Media** property to the URL, enclosed in double quotation marks, of a YouTube video.
101
109
2. Press F5, and then play the clip by clicking or tapping the play button of the **Video** control.
102
110
3. Press Esc to return to the default workspace.
111
+
112
+
113
+
## Accessibility guidelines
114
+
### Audio and video alternatives
115
+
***ShowControls** must be true so that users can listen or watch multimedia at their own pace. This also allows users to toggle closed captions and full-screen mode on video players.
116
+
* Closed captions must be provided for videos.
117
+
* For YouTube videos, use authoring tools provided by YouTube to add captions.
118
+
* For other videos, create captions in WebVTT format, upload them, and set **ClosedCaptionsUrl** to the url ___location. There are several limitations. Server(s) hosting video and captions needs to be CORS-enabled and serve them using HTTPS protocol. Captioning does not work on Internet Explorer.
119
+
* Consider providing an audio or video transcript using one of these methods:
120
+
1. Put the text in a **[Label](control-text-box.md)** and position it adjacent to the multimedia player. Optionally, create a **[Button](control-button.md)** to toggle the display of the text.
121
+
2. Put the text in a different screen. Create a **[Button](control-button.md)** that navigates to the screen and position the button adjacent to the multimedia player.
122
+
3. If the description is short, it can be put it in the **[AccessibleLabel](properties-accessibility.md)**.
123
+
124
+
### Color contrast
125
+
There must be adequate color contrast between:
126
+
***[FocusedBorderColor](properties-color-border.md)** and the outside color
127
+
***[Image](properties-visual.md)** and the multimedia player controls (if applicable)
128
+
***[Fill](properties-color-border.md)** and the multimedia player controls (if the fill is visible)
129
+
130
+
Provide closed captions and/or transcript if the video content has color contrast issues.
131
+
132
+
### Screen reader support
133
+
***[AccessibleLabel](properties-accessibility.md)** must be present.
134
+
135
+
### Keyboard support
136
+
***[TabIndex](properties-accessibility.md)** must be zero or greater so that keyboard users can navigate to it.
137
+
* Focus indicators must be clearly visible. Use **[FocusedBorderColor](properties-color-border.md)** and **[FocusedBorderThickness](properties-color-border.md)** to achieve this.
138
+
***AutoStart** should be false because it can be difficult for keyboard users to stop playback quickly.
0 commit comments