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: windows-apps-src/design/controls-and-patterns/flipview.md
+31-16Lines changed: 31 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -151,10 +151,6 @@ In this example, the ItemTemplate of a FlipView is defined inline. An overlay is
151
151
</FlipView>
152
152
```
153
153
154
-
Here's what the layout defined by the data template looks like.
155
-
156
-
Flip view data template.
157
-
158
154
### Set the orientation of the flip view
159
155
160
156
By default, the flip view flips horizontally. To make the it flip vertically, use a stack panel with a vertical orientation as the flip view's [**ItemsPanel**](/uwp/api/windows.ui.xaml.controls.itemscontrol.itemspanel).
@@ -194,25 +190,43 @@ Here's what the flip view looks like with a vertical orientation.
194
190
195
191
## Adding a context indicator
196
192
197
-
A context indicator in a flip view provides a useful point of reference. The dots in a standard context indicator aren't interactive. As seen in this example, the best placement is usually centered and below the gallery:
193
+
Use a context indicator (such as a [PipsPager](pipspager.md) or film strip) with a flip view to help provide users with a point of reference within the content.
194
+
195
+
The following image shows a PipsPager used with a small photo gallery (we recommend centering the PipsPager below the gallery).
196
+
197
+
:::image type="content" source="images/pipspager-flipview-example.png" alt-text="A PipsPager with five horizontal dots underneath a FlipView photo album. The third dot is selected, which indicates the third page of content.":::
198
198
199
-

199
+
This code snippet shows how to bind a PipsPager with a [FlipView](/windows/winui/api/microsoft.ui.xaml.controls.flipview).
For larger collections (10-25 items), consider using an indicator that provides more context, such as a film strip of thumbnails. Unlike a context indicator that uses simple dots, each thumbnail in the film strip shows a small version of the corresponding image and should be selectable:
220
+
For larger collections (10 or more items), we highly recommend using a contextual indicator such as a film strip of thumbnails. Unlike a PipsPager that uses simple dots or glyphs, each thumbnail in the film strip shows a smaller, selectable version of the corresponding image.
202
221
203
-

222
+
:::image type="content" source="images/controls_contextindicator.jpg" alt-text="A film strip of thumbnails underneath a FlipView photo album.":::
204
223
205
-
For example code that shows how to add a context indicator to a FlipView, see [XAML FlipView sample](https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/411c271e537727d737a53fa2cbe99eaecac00cc0/Official%20Windows%20Platform%20Sample/Windows%208%20app%20samples/%5BC%23%5D-Windows%208%20app%20samples/C%23/Windows%208%20app%20samples/XAML%20FlipView%20control%20sample%20(Windows%208)).
224
+
For a full example showing how to add a context indicator to a FlipView, see [XAML FlipView sample](https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/411c271e537727d737a53fa2cbe99eaecac00cc0/Official%20Windows%20Platform%20Sample/Windows%208%20app%20samples/%5BC%23%5D-Windows%208%20app%20samples/C%23/Windows%208%20app%20samples/XAML%20FlipView%20control%20sample%20(Windows%208)).
206
225
207
226
## Do's and don'ts
208
227
209
-
- Flip views work best for collections of up to 25 or so items.
210
-
- Avoid using a flip view control for larger collections, as the repetitive motion of flipping through each item can be tedious. An exception would be for photo albums, which often have hundreds or thousands of images. Photo albums almost always switch to a flip view once a photo has been selected in the grid view layout. For other large collections, consider a [List view or grid view](lists.md).
211
-
- For context indicators:
212
-
- The order of dots (or whichever visual marker you choose) works best when centered and below a horizontally-panning gallery.
213
-
- If you want a context indicator in a vertically-panning gallery, it works best centered and to the right of the images.
214
-
- The highlighted dot indicates the current item. Usually the highlighted dot is white and the other dots are gray.
215
-
- The number of dots can vary, but don't have so many that the user might struggle to find his or her place - 10 dots is usually the maximum number to show.
228
+
- Flip views work best for collections of up to 25 or so items.
229
+
- Avoid using a flip view control for larger collections, as the repetitive motion of flipping through each item can be tedious. An exception would be for photo albums, which often have hundreds or thousands of images. Photo albums almost always switch to a flip view once a photo has been selected in the grid view layout. For other large collections, consider a [List view or grid view](lists.md).
216
230
217
231
## Globalization and localization checklist
218
232
@@ -230,4 +244,5 @@ For example code that shows how to add a context indicator to a FlipView, see [X
Copy file name to clipboardExpand all lines: windows-apps-src/design/controls-and-patterns/pipspager.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.localizationpriority: medium
14
14
15
15
# PipsPager
16
16
17
-
The PipsPager control enables navigation within paginated content beyond the bounds of the viewport (visible area). The PipsPager is independent of the content shown and is intended for experiences where content is paginated but is not explicitly numbered. For example, pages indicated with 'dot' glyphs instead of numbers to encourage discovery of content and reduce unnecessary UI elements on the page.
17
+
The PipsPager control helps users navigate within linearly paginated content using a configurable collection of glyphs, each of which represents a single "page" within a limitless range. The glyphs highlight the current page, and indicate the availability of both preceding and succeeding pages. The control relies on current context and does not support explicit page numbering or a non-linear organization.
18
18
19
19
**Get the Windows UI Library**
20
20
@@ -39,7 +39,7 @@ The PipsPager control enables navigation within paginated content beyond the bou
39
39
40
40
## Is this the right control?
41
41
42
-
Use a PipsPager for content that is not explicitly numbered in a layout, or a glyph-based representation of numbered pages is desired.
42
+
Use a PipsPager for content organized in a linear structure, is not explicitly numbered, or where a glyph-based representation of numbered pages is desired.
43
43
44
44
This UI is commonly used in apps such as photo viewers and app lists, where display space is limited and the number of potential pages is infinite.
45
45
@@ -125,15 +125,15 @@ By default, a maximum of five pips are visible.
125
125
126
126
### Integrate PipsPager with a Collection control
127
127
128
+
:::image type="content" source="images/pipspager-flipview-example.png" alt-text="A PipsPager with five horizontal dots underneath a FlipView photo album. The third dot is selected, which indicates the third page of content.":::
129
+
128
130
A PipsPager is often used in conjunction with collection controls.
129
131
130
132
The following example shows how to bind a PipsPager with a [FlipView](/windows/winui/api/microsoft.ui.xaml.controls.flipview) and provide another way to navigate through content and indicate the current page.
131
133
132
134
> [!NOTE]
133
135
> To use the PipsPager as a page indicator **only** and disable user interactions, set the control's [IsEnabled](/windows/winui/api/microsoft.ui.xaml.controls.control.isenabled) property to false in the control.
134
136
135
-
:::image type="content" source="images/pipspager-flipview-example.png" alt-text="A PipsPager with five horizontal dots underneath a FlipView photo album. The third dot is selected, which indicates the third page of content.":::
0 commit comments