Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 3.44 KB

File metadata and controls

43 lines (27 loc) · 3.44 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.FlipViewItem
winrt class

Microsoft.UI.Xaml.Controls.FlipViewItem

-description

Represents the container for an item in a FlipView control.

-xaml-syntax

<FlipViewItem .../>

-remarks

The FlipViewItem class provides the container for items displayed in a FlipView control. You populate the FlipView by adding objects directly to its Items collection or by binding its ItemsSource property to a data source. When items are added to the FlipView, a FlipViewItem container is created automatically for each item in the collection.

You can specify the look of the FlipViewItem by setting the FlipView's ItemContainerStyle property to a Style with a TargetType of FlipViewItem.

Control style and template

You can modify the default Style and ControlTemplate to give the control a unique appearance. For information about modifying a control's style and template, see XAML styles. The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is installed with the Windows App SDK NuGet package. By default, this location is \Users\<username>\.nuget\packages\microsoft.windowsappsdk\<version>\lib\uap10.0\Microsoft.UI\Themes\generic.xaml. Styles and resources from different versions of the SDK might have different values.

XAML also includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. Modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the XAML styles article.

Note

In an app compiled for Windows 8.1, FlipViewItem handles pointer focus differently than in an app compiled for Windows 8. + In an app compiled for Windows 8, the event order is PointerPressed > GotFocus > PointerReleased. FlipViewItem does not mark the PointerReleased event as Handled.

-examples

-see-also

SelectorItem, FlipView, ItemContainerStyle