FlipViewItem FlipViewItem FlipViewItem Class

Represents the container for an item in a FlipView control.

Syntax

Declaration

public class FlipViewItempublic class FlipViewItemPublic Class FlipViewItem
<FlipViewItem .../>

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Tag
Tag
Tag
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

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 Styling controls. 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 available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP&lt;SDK version>\Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

Starting in Windows 10, version 1607 (Windows Software Development Kit (SDK) version 10.0.14393.0), generic.xaml includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. In apps that target this software development kit (SDK) or later, modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the Styling controls article.

This table shows the resources used by the FlipViewItem control.

Resource keyDescription
FlipViewItemBackgroundItem background color
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.

Constructors summary

Initializes a new instance of the FlipViewItem class.

Constructors

  • FlipViewItem()
    FlipViewItem()
    FlipViewItem()
    FlipViewItem()

    Initializes a new instance of the FlipViewItem class.

    public FlipViewItem()public FlipViewItem()Public Function FlipViewItem() As

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.UI.Xaml.Controls.dll