List​View​Item​Presenter List​View​Item​Presenter List​View​Item​Presenter Class

Definition

Represents the visual elements of a ListViewItem. When developing for Windows 10, use ListViewItemPresenter instead of GridViewItemPresenter in your item container style, both for ListView and for GridView. If you edit a copy of the default item container styles then you will get the correct type.

public class ListViewItemPresenter : ContentPresenter, IListViewItemPresenter, IListViewItemPresenter2public class ListViewItemPresenter : ContentPresenter, IListViewItemPresenter, IListViewItemPresenter2Public Class ListViewItemPresenter Inherits ContentPresenter Implements IListViewItemPresenter, IListViewItemPresenter2
<ListViewItemPresenter .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Remarks

The XAML usage shown is intended to be part of a XAML template or style for a ListView control (or derived type) and its items. For more info, see ListView.

For a custom ListViewItemPresenter, use the name of your class as the string within the object element syntax for XAML. You'll probably have to map an xmlns definition with a prefix to refer to your class definition. For more info, see XAML namespaces and namespace mapping.

Constructors

ListViewItemPresenter() ListViewItemPresenter() ListViewItemPresenter()

Initializes a new instance of the ListViewItemPresenter class.

public ListViewItemPresenter()public ListViewItemPresenter()Public Sub New()
Attributes

Properties

CheckBoxBrush CheckBoxBrush CheckBoxBrush

In a ListView in multiple selection mode, gets or sets the brush used to render an item's check box border. In a GridView, the check box background is set rather than the border, and only for unselected items.

public Brush CheckBoxBrush { get; set; }public Brush CheckBoxBrush { get; set; }Public ReadWrite Property CheckBoxBrush As Brush
<ListViewItemPresenter CheckBoxBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the check box border (ListView ) or background (GridView ).

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

CheckBoxBrushProperty CheckBoxBrushProperty CheckBoxBrushProperty

Identifies the CheckBoxBrush dependency property.

public static DependencyProperty CheckBoxBrushProperty { get; }public static DependencyProperty CheckBoxBrushProperty { get; }Public Static ReadOnly Property CheckBoxBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CheckBoxBrush dependency property.

Attributes
See Also

CheckBrush CheckBrush CheckBrush

Gets or sets the brush used to render the check mark on a selected item.

public Brush CheckBrush { get; set; }public Brush CheckBrush { get; set; }Public ReadWrite Property CheckBrush As Brush
<ListViewItemPresenter CheckBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the check mark on a selected item.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

CheckBrushProperty CheckBrushProperty CheckBrushProperty

Identifies the CheckBrush dependency property.

public static DependencyProperty CheckBrushProperty { get; }public static DependencyProperty CheckBrushProperty { get; }Public Static ReadOnly Property CheckBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CheckBrush dependency property.

Attributes

CheckHintBrush CheckHintBrush CheckHintBrush

Gets or sets the brush used to render the check mark hint. This property is ignored for a Windows 10 app.

public Brush CheckHintBrush { get; set; }public Brush CheckHintBrush { get; set; }Public ReadWrite Property CheckHintBrush As Brush
<ListViewItemPresenter CheckHintBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the check mark hint.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

CheckHintBrushProperty CheckHintBrushProperty CheckHintBrushProperty

Identifies the CheckHintBrush dependency property.

public static DependencyProperty CheckHintBrushProperty { get; }public static DependencyProperty CheckHintBrushProperty { get; }Public Static ReadOnly Property CheckHintBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CheckHintBrush dependency property.

Attributes

CheckMode CheckMode CheckMode

Gets or sets the style of checkbox shown for selecting an item.

public ListViewItemPresenterCheckMode CheckMode { get; set; }public ListViewItemPresenterCheckMode CheckMode { get; set; }Public ReadWrite Property CheckMode As ListViewItemPresenterCheckMode
<listViewItemPresenter CheckMode="checkModeMemberName"/>
Value
ListViewItemPresenterCheckMode ListViewItemPresenterCheckMode ListViewItemPresenterCheckMode

A value of the enumeration that specifies the style of checkbox to show. The default is Inline.

Attributes
See Also

CheckModeProperty CheckModeProperty CheckModeProperty

Identifies the CheckMode dependency property.

public static DependencyProperty CheckModeProperty { get; }public static DependencyProperty CheckModeProperty { get; }Public Static ReadOnly Property CheckModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CheckMode dependency property.

Attributes
See Also

CheckSelectingBrush CheckSelectingBrush CheckSelectingBrush

Gets or sets the brush used to render the check mark on an item while it's being selected using a swipe interaction. This property is ignored for a Windows 10 app.

public Brush CheckSelectingBrush { get; set; }public Brush CheckSelectingBrush { get; set; }Public ReadWrite Property CheckSelectingBrush As Brush
<ListViewItemPresenter CheckSelectingBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the check mark on an item while it's being selected using a swipe interaction.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

CheckSelectingBrushProperty CheckSelectingBrushProperty CheckSelectingBrushProperty

Identifies the CheckSelectingBrush dependency property.

public static DependencyProperty CheckSelectingBrushProperty { get; }public static DependencyProperty CheckSelectingBrushProperty { get; }Public Static ReadOnly Property CheckSelectingBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CheckSelectingBrush dependency property.

Attributes

ContentMargin ContentMargin ContentMargin

Gets or sets an internal margin between presented content and its presenter.

public Thickness ContentMargin { get; set; }public Thickness ContentMargin { get; set; }Public ReadWrite Property ContentMargin As Thickness
<listViewItemPresenter ContentMargin="uniform"/>
- or -
<listViewItemPresenter ContentMargin="left&right,top&bottom"/>
- or -
<listViewItemPresenter ContentMargin="left,top,right,bottom"/>
Attributes

ContentMarginProperty ContentMarginProperty ContentMarginProperty

Identifies the ContentMargin dependency property.

public static DependencyProperty ContentMarginProperty { get; }public static DependencyProperty ContentMarginProperty { get; }Public Static ReadOnly Property ContentMarginProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ContentMargin dependency property.

Attributes

DisabledOpacity DisabledOpacity DisabledOpacity

Gets or sets the opacity of an item that is disabled.

public double DisabledOpacity { get; set; }public double DisabledOpacity { get; set; }Public ReadWrite Property DisabledOpacity As double
<listViewItemPresenterDisabledOpacity="themeResourceReference"/>

Value
double double double

The opacity of an item that is disabled. The value should be between 0 and 1. 0 is no opacity (transparent), 1 is full opacity (renders normally). The effective default value at run-time comes from themes.

Attributes

Remarks

Notes on XAML syntax

The first XAML usage shown is for referencing a theme resource. This is how values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that values can be shared by different templates.

DisabledOpacityProperty DisabledOpacityProperty DisabledOpacityProperty

Identifies the DisabledOpacity dependency property.

public static DependencyProperty DisabledOpacityProperty { get; }public static DependencyProperty DisabledOpacityProperty { get; }Public Static ReadOnly Property DisabledOpacityProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the DisabledOpacity dependency property.

Attributes

DragBackground DragBackground DragBackground

Gets or sets the brush used to render the background of an item that's being dragged.

public Brush DragBackground { get; set; }public Brush DragBackground { get; set; }Public ReadWrite Property DragBackground As Brush
<ListViewItemPresenter DragBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the background of an item that's being dragged.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

DragBackgroundProperty DragBackgroundProperty DragBackgroundProperty

Identifies the DragBackground dependency property.

public static DependencyProperty DragBackgroundProperty { get; }public static DependencyProperty DragBackgroundProperty { get; }Public Static ReadOnly Property DragBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the DragBackground dependency property.

Attributes

DragForeground DragForeground DragForeground

Gets or sets the brush used to render the foreground of an item that's being dragged.

public Brush DragForeground { get; set; }public Brush DragForeground { get; set; }Public ReadWrite Property DragForeground As Brush
<ListViewItemPresenter DragForeground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the foreground of an item that's being dragged.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

DragForegroundProperty DragForegroundProperty DragForegroundProperty

Identifies the DragForeground dependency property.

public static DependencyProperty DragForegroundProperty { get; }public static DependencyProperty DragForegroundProperty { get; }Public Static ReadOnly Property DragForegroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the DragForeground dependency property.

Attributes

DragOpacity DragOpacity DragOpacity

Gets or sets the opacity of an item that's being dragged.

public double DragOpacity { get; set; }public double DragOpacity { get; set; }Public ReadWrite Property DragOpacity As double
<listViewItemPresenterDragOpacity="themeResourceReference"/>

Value
double double double

The opacity of an item that's being dragged. The value should be between 0 and 1. 0 is no opacity (transparent), 1 is full opacity (renders normally). The effective default value at run-time comes from themes.

Attributes

Remarks

Notes on XAML syntax

The first XAML usage shown is for referencing a theme resource. This is how values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that values can be shared by different templates.

DragOpacityProperty DragOpacityProperty DragOpacityProperty

Identifies the DragOpacity dependency property.

public static DependencyProperty DragOpacityProperty { get; }public static DependencyProperty DragOpacityProperty { get; }Public Static ReadOnly Property DragOpacityProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the DragOpacity dependency property.

Attributes

FocusBorderBrush FocusBorderBrush FocusBorderBrush

Gets or sets the brush used to render the border of an item that has focus. Also see FocusSecondaryBorderBrush.

public Brush FocusBorderBrush { get; set; }public Brush FocusBorderBrush { get; set; }Public ReadWrite Property FocusBorderBrush As Brush
<ListViewItemPresenter FocusBorderBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the border of an item that has focus.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

FocusBorderBrushProperty FocusBorderBrushProperty FocusBorderBrushProperty

Identifies the FocusBorderBrush dependency property.

public static DependencyProperty FocusBorderBrushProperty { get; }public static DependencyProperty FocusBorderBrushProperty { get; }Public Static ReadOnly Property FocusBorderBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the FocusBorderBrush dependency property.

Attributes

FocusSecondaryBorderBrush FocusSecondaryBorderBrush FocusSecondaryBorderBrush

Gets or sets the brush used to render the second color of the border around an item that has focus. Focus is rendered as a composition of two brushes. This property is used together the FocusBorderBrush to specify these two brushes.

public Brush FocusSecondaryBorderBrush { get; set; }public Brush FocusSecondaryBorderBrush { get; set; }Public ReadWrite Property FocusSecondaryBorderBrush As Brush
<ListViewItemPresenter FocusSecondaryBorderBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the second color of the border around an item that has focus.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

FocusSecondaryBorderBrushProperty FocusSecondaryBorderBrushProperty FocusSecondaryBorderBrushProperty

Identifies the FocusSecondaryBorderBrush dependency property.

public static DependencyProperty FocusSecondaryBorderBrushProperty { get; }public static DependencyProperty FocusSecondaryBorderBrushProperty { get; }Public Static ReadOnly Property FocusSecondaryBorderBrushProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the FocusSecondaryBorderBrush dependency property.

Attributes
See Also

ListViewItemPresenterHorizontalContentAlignment ListViewItemPresenterHorizontalContentAlignment ListViewItemPresenterHorizontalContentAlignment

Note

ListViewItemPresenterHorizontalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.HorizontalContentAlignment.

Gets or sets the horizontal alignment of the content being presented.

public HorizontalAlignment ListViewItemPresenterHorizontalContentAlignment { get; set; }public HorizontalAlignment ListViewItemPresenterHorizontalContentAlignment { get; set; }Public ReadWrite Property ListViewItemPresenterHorizontalContentAlignment As HorizontalAlignment
Value
HorizontalAlignment HorizontalAlignment HorizontalAlignment

A value of the enumeration.

Attributes

Remarks

Important

ListViewItemPresenterHorizontalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.HorizontalContentAlignment.

ListViewItemPresenterHorizontalContentAlignmentProperty ListViewItemPresenterHorizontalContentAlignmentProperty ListViewItemPresenterHorizontalContentAlignmentProperty

Note

ListViewItemPresenterVerticalContentAlignmentProperty may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.VerticalContentAlignmentProperty.

Identifies the ListViewItemPresenterHorizontalContentAlignment dependency property.

public static DependencyProperty ListViewItemPresenterHorizontalContentAlignmentProperty { get; }public static DependencyProperty ListViewItemPresenterHorizontalContentAlignmentProperty { get; }Public Static ReadOnly Property ListViewItemPresenterHorizontalContentAlignmentProperty As DependencyProperty
Attributes
See Also

ListViewItemPresenterPadding ListViewItemPresenterPadding ListViewItemPresenterPadding

Note

ListViewItemPresenterPadding may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.Padding.

Gets or sets the padding around the presenter.

public Thickness ListViewItemPresenterPadding { get; set; }public Thickness ListViewItemPresenterPadding { get; set; }Public ReadWrite Property ListViewItemPresenterPadding As Thickness
Attributes

Remarks

Important

ListViewItemPresenterPadding may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.Padding.

ListViewItemPresenterPaddingProperty ListViewItemPresenterPaddingProperty ListViewItemPresenterPaddingProperty

Note

ListViewItemPresenterPaddingProperty may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.PaddingProperty.

Identifies the ListViewItemPresenterPadding dependency property.

public static DependencyProperty ListViewItemPresenterPaddingProperty { get; }public static DependencyProperty ListViewItemPresenterPaddingProperty { get; }Public Static ReadOnly Property ListViewItemPresenterPaddingProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ListViewItemPresenterPadding dependency property.

Attributes
See Also

ListViewItemPresenterVerticalContentAlignment ListViewItemPresenterVerticalContentAlignment ListViewItemPresenterVerticalContentAlignment

Note

ListViewItemPresenterVerticalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.VerticalContentAlignment.

Gets or sets the vertical alignment of the content being presented.

public VerticalAlignment ListViewItemPresenterVerticalContentAlignment { get; set; }public VerticalAlignment ListViewItemPresenterVerticalContentAlignment { get; set; }Public ReadWrite Property ListViewItemPresenterVerticalContentAlignment As VerticalAlignment
Value
VerticalAlignment VerticalAlignment VerticalAlignment

A value of the enumeration.

Attributes

Remarks

Important

ListViewItemPresenterVerticalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.VerticalContentAlignment.

ListViewItemPresenterVerticalContentAlignmentProperty ListViewItemPresenterVerticalContentAlignmentProperty ListViewItemPresenterVerticalContentAlignmentProperty

Note

ListViewItemPresenterVerticalContentAlignmentProperty may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.VerticalContentAlignmentProperty.

Identifies the ListViewItemPresenterVerticalContentAlignment dependency property.

public static DependencyProperty ListViewItemPresenterVerticalContentAlignmentProperty { get; }public static DependencyProperty ListViewItemPresenterVerticalContentAlignmentProperty { get; }Public Static ReadOnly Property ListViewItemPresenterVerticalContentAlignmentProperty As DependencyProperty
Attributes

Remarks

Important

ListViewItemPresenterVerticalContentAlignmentProperty may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.VerticalContentAlignmentProperty.

See Also

PlaceholderBackground PlaceholderBackground PlaceholderBackground

Gets or sets the brush used to render the placeholder background for an item.

public Brush PlaceholderBackground { get; set; }public Brush PlaceholderBackground { get; set; }Public ReadWrite Property PlaceholderBackground As Brush
<ListViewItemPresenter PlaceholderBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the placeholder background for an item.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

PlaceholderBackgroundProperty PlaceholderBackgroundProperty PlaceholderBackgroundProperty

Identifies the PlaceholderBackground dependency property.

public static DependencyProperty PlaceholderBackgroundProperty { get; }public static DependencyProperty PlaceholderBackgroundProperty { get; }Public Static ReadOnly Property PlaceholderBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PlaceholderBackground dependency property.

Attributes

PointerOverBackground PointerOverBackground PointerOverBackground

Gets or sets the brush used to render the background of an item that has the pointer over it.

public Brush PointerOverBackground { get; set; }public Brush PointerOverBackground { get; set; }Public ReadWrite Property PointerOverBackground As Brush
<ListViewItemPresenter PointerOverBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the background of an item that has the pointer over it.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

PointerOverBackgroundMargin PointerOverBackgroundMargin PointerOverBackgroundMargin

Gets or sets the margin of the background displayed for pointer-over input actions in the ListView item cell, versus the cell. This property is ignored for a Windows 10 app.

public Thickness PointerOverBackgroundMargin { get; set; }public Thickness PointerOverBackgroundMargin { get; set; }Public ReadWrite Property PointerOverBackgroundMargin As Thickness
<listViewItemPresenter PointerOverBackgroundMargin="uniform"/>
- or -
<listViewItemPresenter PointerOverBackgroundMargin="left&right,top&bottom"/>
- or -
<listViewItemPresenter PointerOverBackgroundMargin="left,top,right,bottom"/>
Attributes

PointerOverBackgroundMarginProperty PointerOverBackgroundMarginProperty PointerOverBackgroundMarginProperty

Identifies the PointerOverBackgroundMargin dependency property.

public static DependencyProperty PointerOverBackgroundMarginProperty { get; }public static DependencyProperty PointerOverBackgroundMarginProperty { get; }Public Static ReadOnly Property PointerOverBackgroundMarginProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PointerOverBackgroundMargin dependency property.

Attributes

PointerOverBackgroundProperty PointerOverBackgroundProperty PointerOverBackgroundProperty

Identifies the PointerOverBackground dependency property.

public static DependencyProperty PointerOverBackgroundProperty { get; }public static DependencyProperty PointerOverBackgroundProperty { get; }Public Static ReadOnly Property PointerOverBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PointerOverBackground dependency property.

Attributes

PointerOverForeground PointerOverForeground PointerOverForeground

Gets or sets the brush used to render the foreground when the pointer is over the item.

public Brush PointerOverForeground { get; set; }public Brush PointerOverForeground { get; set; }Public ReadWrite Property PointerOverForeground As Brush
<ListViewItemPresenter PointerOverForeground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the foreground when the pointer is over the item.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

PointerOverForegroundProperty PointerOverForegroundProperty PointerOverForegroundProperty

Identifies the PointerOverForeground dependency property.

public static DependencyProperty PointerOverForegroundProperty { get; }public static DependencyProperty PointerOverForegroundProperty { get; }Public Static ReadOnly Property PointerOverForegroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PointerOverForeground dependency property.

Attributes
See Also

PressedBackground PressedBackground PressedBackground

In a ListView, gets or sets the brush used to render the background of an unselected item while the user is pressing it. In a GridView, the item's border is set rather than the background.

public Brush PressedBackground { get; set; }public Brush PressedBackground { get; set; }Public ReadWrite Property PressedBackground As Brush
<ListViewItemPresenter PressedBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render an unselected item's background (ListView ) or border (GridView ) while pressed.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

PressedBackgroundProperty PressedBackgroundProperty PressedBackgroundProperty

Identifies the PressedBackground dependency property.

public static DependencyProperty PressedBackgroundProperty { get; }public static DependencyProperty PressedBackgroundProperty { get; }Public Static ReadOnly Property PressedBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PressedBackground dependency property.

Attributes
See Also

ReorderHintOffset ReorderHintOffset ReorderHintOffset

Gets or sets the amount that the reorder hint is offset. This property is ignored for a Windows 10 app.

public double ReorderHintOffset { get; set; }public double ReorderHintOffset { get; set; }Public ReadWrite Property ReorderHintOffset As double
<listViewItemPresenterReorderHintOffset="themeResourceReference"/>

Value
double double double

The amount that the reorder hint is offset, in pixels. The effective default value at run-time comes from themes.

Attributes

Remarks

Notes on XAML syntax

The first XAML usage shown is for referencing a theme resource. This is how values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that values can be shared by different templates.

ReorderHintOffsetProperty ReorderHintOffsetProperty ReorderHintOffsetProperty

Identifies the ReorderHintOffset dependency property.

public static DependencyProperty ReorderHintOffsetProperty { get; }public static DependencyProperty ReorderHintOffsetProperty { get; }Public Static ReadOnly Property ReorderHintOffsetProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ReorderHintOffset dependency property.

Attributes

SelectedBackground SelectedBackground SelectedBackground

Gets or sets the brush used to render the background of an item that's selected.

public Brush SelectedBackground { get; set; }public Brush SelectedBackground { get; set; }Public ReadWrite Property SelectedBackground As Brush
<ListViewItemPresenter SelectedBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the background of an item that's selected.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom GridViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

SelectedBackgroundProperty SelectedBackgroundProperty SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

public static DependencyProperty SelectedBackgroundProperty { get; }public static DependencyProperty SelectedBackgroundProperty { get; }Public Static ReadOnly Property SelectedBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the SelectedBackground dependency property.

Attributes

SelectedBorderThickness SelectedBorderThickness SelectedBorderThickness

Gets or sets the thickness of the border around an item that's selected. This property is ignored for a Windows 10 app.

public Thickness SelectedBorderThickness { get; set; }public Thickness SelectedBorderThickness { get; set; }Public ReadWrite Property SelectedBorderThickness As Thickness
<listViewItemPresenter SelectedBorderThickness="uniform"/>
- or -
<listViewItemPresenter SelectedBorderThickness="left&right,top&bottom"/>
- or -
<listViewItemPresenter SelectedBorderThickness="left,top,right,bottom"/>
Value
Thickness Thickness Thickness

The thickness of the border around an item that's selected, as a Thickness value.

Attributes

SelectedBorderThicknessProperty SelectedBorderThicknessProperty SelectedBorderThicknessProperty

Identifies the SelectedBorderThickness dependency property.

public static DependencyProperty SelectedBorderThicknessProperty { get; }public static DependencyProperty SelectedBorderThicknessProperty { get; }Public Static ReadOnly Property SelectedBorderThicknessProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the SelectedBorderThickness dependency property.

Attributes

SelectedForeground SelectedForeground SelectedForeground

Gets or sets the brush used to render the foreground of an item that's selected.

public Brush SelectedForeground { get; set; }public Brush SelectedForeground { get; set; }Public ReadWrite Property SelectedForeground As Brush
<ListViewItemPresenter SelectedForeground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the foreground of an item that's selected.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.

See Also

SelectedForegroundProperty SelectedForegroundProperty SelectedForegroundProperty

Identifies the SelectedForeground dependency property.

public static DependencyProperty SelectedForegroundProperty { get; }public static DependencyProperty SelectedForegroundProperty { get; }Public Static ReadOnly Property SelectedForegroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the SelectedForeground dependency property.

Attributes

SelectedPointerOverBackground SelectedPointerOverBackground SelectedPointerOverBackground

Gets or sets the brush used to render the background of an item that's selected and has the pointer over it.

public Brush SelectedPointerOverBackground { get; set; }public Brush SelectedPointerOverBackground { get; set; }Public ReadWrite Property SelectedPointerOverBackground As Brush
<ListViewItemPresenter SelectedPointerOverBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the background of an item that's selected and has the pointer over it.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

SelectedPointerOverBackgroundProperty SelectedPointerOverBackgroundProperty SelectedPointerOverBackgroundProperty

Identifies the SelectedPointerOverBackground dependency property.

public static DependencyProperty SelectedPointerOverBackgroundProperty { get; }public static DependencyProperty SelectedPointerOverBackgroundProperty { get; }Public Static ReadOnly Property SelectedPointerOverBackgroundProperty As DependencyProperty
Attributes

SelectedPointerOverBorderBrush SelectedPointerOverBorderBrush SelectedPointerOverBorderBrush

Gets or sets the brush used to render the border of an item that's selected and has the pointer over it. This property is ignored for a Windows 10 app.

public Brush SelectedPointerOverBorderBrush { get; set; }public Brush SelectedPointerOverBorderBrush { get; set; }Public ReadWrite Property SelectedPointerOverBorderBrush As Brush
<ListViewItemPresenter SelectedPointerOverBorderBrush="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render the border of an item that's selected and has the pointer over it.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

SelectedPointerOverBorderBrushProperty SelectedPointerOverBorderBrushProperty SelectedPointerOverBorderBrushProperty

Identifies the SelectedPointerOverBorderBrush dependency property.

public static DependencyProperty SelectedPointerOverBorderBrushProperty { get; }public static DependencyProperty SelectedPointerOverBorderBrushProperty { get; }Public Static ReadOnly Property SelectedPointerOverBorderBrushProperty As DependencyProperty
Attributes

SelectedPressedBackground SelectedPressedBackground SelectedPressedBackground

In a ListView, gets or sets the brush used to render the background of a selected item while the user is pressing it. In a GridView, the item's border is set rather than the background.

public Brush SelectedPressedBackground { get; set; }public Brush SelectedPressedBackground { get; set; }Public ReadWrite Property SelectedPressedBackground As Brush
<ListViewItemPresenter SelectedPressedBackground="themeResourceReference"/>

Value
Brush Brush Brush

The brush used to render a selected item's background (ListView ) or border (GridView ) while pressed.

Attributes

Remarks

Notes on XAML syntax

The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.

If you're setting this property as an attribute on a custom ListViewItemPresenter, substitute the prefixed name of your custom class in the XAML usage shown.

See Also

SelectedPressedBackgroundProperty SelectedPressedBackgroundProperty SelectedPressedBackgroundProperty

Identifies the SelectedPressedBackground dependency property.

public static DependencyProperty SelectedPressedBackgroundProperty { get; }public static DependencyProperty SelectedPressedBackgroundProperty { get; }Public Static ReadOnly Property SelectedPressedBackgroundProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the SelectedPressedBackground dependency property.

Attributes
See Also

SelectionCheckMarkVisualEnabled SelectionCheckMarkVisualEnabled SelectionCheckMarkVisualEnabled

Gets or sets a value that indicates whether the check mark is shown when the item is selected.

public PlatForm::Boolean SelectionCheckMarkVisualEnabled { get; set; }public bool SelectionCheckMarkVisualEnabled { get; set; }Public ReadWrite Property SelectionCheckMarkVisualEnabled As bool
<listViewItemPresenter SelectionCheckMarkVisualEnabled="bool"/>
Value
bool bool bool

true to show the selection check mark; otherwise, false. The default is true.

Attributes

SelectionCheckMarkVisualEnabledProperty SelectionCheckMarkVisualEnabledProperty SelectionCheckMarkVisualEnabledProperty

Identifies the SelectionCheckMarkVisualEnabled dependency property.

public static DependencyProperty SelectionCheckMarkVisualEnabledProperty { get; }public static DependencyProperty SelectionCheckMarkVisualEnabledProperty { get; }Public Static ReadOnly Property SelectionCheckMarkVisualEnabledProperty As DependencyProperty
Attributes