Skip to content

Commit cc4fe73

Browse files
Attempts to address feedback from Chigusa (#1487)
* attempts to address feedback * review feedback incorporated
1 parent d2c636a commit cc4fe73

File tree

2 files changed

+35
-20
lines changed

2 files changed

+35
-20
lines changed

windows-apps-src/design/controls-and-patterns/flipview.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ In this example, the ItemTemplate of a FlipView is defined inline. An overlay is
151151
</FlipView>
152152
```
153153

154-
Here's what the layout defined by the data template looks like.
155-
156-
Flip view data template.
157-
158154
### Set the orientation of the flip view
159155

160156
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.
194190

195191
## Adding a context indicator
196192

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.":::
198198

199-
![Example of a page indicator](images/controls_pageindicator.png)
199+
This code snippet shows how to bind a PipsPager with a [FlipView](/windows/winui/api/microsoft.ui.xaml.controls.flipview).
200+
201+
```xaml
202+
<StackPanel>
203+
<FlipView x:Name="Gallery" MaxWidth="400" Height="270" ItemsSource="{x:Bind Pictures}">
204+
<FlipView.ItemTemplate>
205+
<DataTemplate x:DataType="x:String">
206+
<Image Source="{x:Bind Mode=OneWay}"/>
207+
</DataTemplate>
208+
</FlipView.ItemTemplate>
209+
</FlipView>
210+
211+
<!-- The SelectedPageIndex is bound to the FlipView to keep the two in sync -->
212+
<muxc:PipsPager x:Name="FlipViewPipsPager"
213+
HorizontalAlignment="Center"
214+
Margin="0, 10, 0, 0"
215+
NumberOfPages="{x:Bind Pictures.Count}"
216+
SelectedPageIndex="{x:Bind Path=Gallery.SelectedIndex, Mode=TwoWay}" />
217+
</StackPanel>
218+
```
200219

201-
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.
202221

203-
![Example of context indicator](images/controls_contextindicator.jpg)
222+
:::image type="content" source="images/controls_contextindicator.jpg" alt-text="A film strip of thumbnails underneath a FlipView photo album.":::
204223

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)).
206225

207226
## Do's and don'ts
208227

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).
216230

217231
## Globalization and localization checklist
218232

@@ -230,4 +244,5 @@ For example code that shows how to add a context indicator to a FlipView, see [X
230244
## Related articles
231245

232246
- [Guidelines for lists](lists.md)
247+
- [PipsPager](pipspager.md)
233248
- [**FlipView class**](/uwp/api/Windows.UI.Xaml.Controls.FlipView)

windows-apps-src/design/controls-and-patterns/pipspager.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.localizationpriority: medium
1414

1515
# PipsPager
1616

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.
1818

1919
**Get the Windows UI Library**
2020

@@ -39,7 +39,7 @@ The PipsPager control enables navigation within paginated content beyond the bou
3939
4040
## Is this the right control?
4141

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.
4343

4444
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.
4545

@@ -125,15 +125,15 @@ By default, a maximum of five pips are visible.
125125

126126
### Integrate PipsPager with a Collection control
127127

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+
128130
A PipsPager is often used in conjunction with collection controls.
129131

130132
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.
131133

132134
> [!NOTE]
133135
> 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.
134136
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.":::
136-
137137
```xaml
138138
<StackPanel>
139139
<FlipView x:Name="Gallery" MaxWidth="400" Height="270" ItemsSource="{x:Bind Pictures}">

0 commit comments

Comments
 (0)