GridViewItemPresenter GridViewItemPresenter GridViewItemPresenter Class

Represents the visual elements of a GridViewItem. 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.

Syntax

Declaration

public class GridViewItemPresenterpublic class GridViewItemPresenterPublic Class GridViewItemPresenter
<GridViewItemPresenter .../>

Inheritance Hierarchy

Inherited Members

Inherited properties

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

Inherited events

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited methods

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

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

For a custom GridViewItemPresenter, 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 summary

Initializes a new instance of the GridViewItemPresenter class.

Properties summary

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

Identifies the CheckBrush dependency property.

Gets or sets the brush used to render the check mark hint.

Identifies the CheckHintBrush dependency property.

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

Identifies the CheckSelectingBrush dependency property.

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

Identifies the ContentMargin dependency property.

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

Identifies the DisabledOpacity dependency property.

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

Identifies the DragBackground dependency property.

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

Identifies the DragForeground dependency property.

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

Identifies the DragOpacity dependency property.

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

Identifies the FocusBorderBrush dependency property.

Note

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

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

Note

GridViewItemPresenterHorizontalContentAlignmentProperty may be altered or unavailable for releases after Windows 10. Instead, use HorizontalContentAlignmentProperty.

Identifies the GridViewItemPresenterHorizontalContentAlignment dependency property.

Note

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

Gets or sets the padding between the presenter and the GridView.

Note

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

Identifies the GridViewItemPresenterPadding dependency property.

Note

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

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

Note

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

Identifies the GridViewItemPresenterVerticalContentAlignment dependency property.

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

Identifies the PlaceholderBackground dependency property.

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

Gets or sets the margin of the background displayed for pointer-over input actions in the GridView item cell, versus the cell.

Identifies the PointerOverBackgroundMargin dependency property.

Identifies the PointerOverBackground dependency property.

Gets or sets the amount that the reorder hint is offset.

Identifies the ReorderHintOffset dependency property.

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

Identifies the SelectedBackground dependency property.

Gets or sets the thickness of the border around an item that's selected.

Identifies the SelectedBorderThickness dependency property.

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

Identifies the SelectedForeground dependency property.

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

Identifies the SelectedPointerOverBackground dependency property.

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

Identifies the SelectedPointerOverBorderBrush dependency property.

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

Identifies the SelectionCheckMarkVisualEnabled dependency property.

Constructors

  • GridViewItemPresenter()
    GridViewItemPresenter()
    GridViewItemPresenter()
    GridViewItemPresenter()

    Initializes a new instance of the GridViewItemPresenter class.

    public GridViewItemPresenter()public New()Public Sub New()public GridViewItemPresenter()

Properties

  • CheckBrush
    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 Brushpublic Brush CheckBrush { get; set; }
    <GridViewItemPresenter CheckBrush="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • CheckBrushProperty
    CheckBrushProperty
    CheckBrushProperty
    CheckBrushProperty

    Identifies the CheckBrush dependency property.

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

    Property Value

  • CheckHintBrush
    CheckHintBrush
    CheckHintBrush
    CheckHintBrush

    Gets or sets the brush used to render the check mark hint.

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

    Property Value

    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.

  • CheckHintBrushProperty
    CheckHintBrushProperty
    CheckHintBrushProperty
    CheckHintBrushProperty

    Identifies the CheckHintBrush dependency property.

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

    Property Value

  • CheckSelectingBrush
    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.

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

    Property Value

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

    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.

  • CheckSelectingBrushProperty
    CheckSelectingBrushProperty
    CheckSelectingBrushProperty
    CheckSelectingBrushProperty

    Identifies the CheckSelectingBrush dependency property.

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

    Property Value

  • ContentMargin
    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 Thicknesspublic Thickness ContentMargin { get; set; }
    <gridViewItemPresenter ContentMargin="uniform"/>
    - or -
    <gridViewItemPresenter ContentMargin="left&right,top&bottom"/>
    - or -
    <gridViewItemPresenter ContentMargin="left,top,right,bottom"/>
    

    Property Value

  • ContentMarginProperty
    ContentMarginProperty
    ContentMarginProperty
    ContentMarginProperty

    Identifies the ContentMargin dependency property.

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

    Property Value

  • DisabledOpacity
    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 doublepublic double DisabledOpacity { get; set; }
    <gridViewItemPresenterDisabledOpacity="themeResourceReference"/>
    
    

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

    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
    DisabledOpacityProperty

    Identifies the DisabledOpacity dependency property.

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

    Property Value

  • DragBackground
    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 Brushpublic Brush DragBackground { get; set; }
    <GridViewItemPresenter DragBackground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • DragBackgroundProperty
    DragBackgroundProperty
    DragBackgroundProperty
    DragBackgroundProperty

    Identifies the DragBackground dependency property.

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

    Property Value

  • DragForeground
    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 Brushpublic Brush DragForeground { get; set; }
    <GridViewItemPresenter DragForeground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • DragForegroundProperty
    DragForegroundProperty
    DragForegroundProperty
    DragForegroundProperty

    Identifies the DragForeground dependency property.

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

    Property Value

  • DragOpacity
    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 doublepublic double DragOpacity { get; set; }
    <gridViewItemPresenterDragOpacity="themeResourceReference"/>
    
    

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

    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
    DragOpacityProperty

    Identifies the DragOpacity dependency property.

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

    Property Value

  • FocusBorderBrush
    FocusBorderBrush
    FocusBorderBrush
    FocusBorderBrush

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

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

    Property Value

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

    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.

  • FocusBorderBrushProperty
    FocusBorderBrushProperty
    FocusBorderBrushProperty
    FocusBorderBrushProperty

    Identifies the FocusBorderBrush dependency property.

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

    Property Value

  • GridViewItemPresenterHorizontalContentAlignment
    GridViewItemPresenterHorizontalContentAlignment
    GridViewItemPresenterHorizontalContentAlignment
    GridViewItemPresenterHorizontalContentAlignment
    Note

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

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

    public HorizontalAlignment GridViewItemPresenterHorizontalContentAlignment { get; set; }public HorizontalAlignment GridViewItemPresenterHorizontalContentAlignment { get; set; }Public ReadWrite Property GridViewItemPresenterHorizontalContentAlignment As HorizontalAlignmentpublic HorizontalAlignment GridViewItemPresenterHorizontalContentAlignment { get; set; }

    Property Value

    Remarks

    Important

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

  • GridViewItemPresenterHorizontalContentAlignmentProperty
    GridViewItemPresenterHorizontalContentAlignmentProperty
    GridViewItemPresenterHorizontalContentAlignmentProperty
    GridViewItemPresenterHorizontalContentAlignmentProperty
    Note

    GridViewItemPresenterHorizontalContentAlignmentProperty may be altered or unavailable for releases after Windows 10. Instead, use HorizontalContentAlignmentProperty.

    Identifies the GridViewItemPresenterHorizontalContentAlignment dependency property.

    public static DependencyProperty GridViewItemPresenterHorizontalContentAlignmentProperty { get; }public static DependencyProperty GridViewItemPresenterHorizontalContentAlignmentProperty { get; }Public Static ReadOnly Property GridViewItemPresenterHorizontalContentAlignmentProperty As DependencyPropertypublic static DependencyProperty GridViewItemPresenterHorizontalContentAlignmentProperty { get; }

    Property Value

  • GridViewItemPresenterPadding
    GridViewItemPresenterPadding
    GridViewItemPresenterPadding
    GridViewItemPresenterPadding
    Note

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

    Gets or sets the padding between the presenter and the GridView.

    public Thickness GridViewItemPresenterPadding { get; set; }public Thickness GridViewItemPresenterPadding { get; set; }Public ReadWrite Property GridViewItemPresenterPadding As Thicknesspublic Thickness GridViewItemPresenterPadding { get; set; }

    Property Value

    Remarks

    Important

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

  • GridViewItemPresenterPaddingProperty
    GridViewItemPresenterPaddingProperty
    GridViewItemPresenterPaddingProperty
    GridViewItemPresenterPaddingProperty
    Note

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

    Identifies the GridViewItemPresenterPadding dependency property.

    public static DependencyProperty GridViewItemPresenterPaddingProperty { get; }public static DependencyProperty GridViewItemPresenterPaddingProperty { get; }Public Static ReadOnly Property GridViewItemPresenterPaddingProperty As DependencyPropertypublic static DependencyProperty GridViewItemPresenterPaddingProperty { get; }

    Property Value

  • GridViewItemPresenterVerticalContentAlignment
    GridViewItemPresenterVerticalContentAlignment
    GridViewItemPresenterVerticalContentAlignment
    GridViewItemPresenterVerticalContentAlignment
    Note

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

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

    public VerticalAlignment GridViewItemPresenterVerticalContentAlignment { get; set; }public VerticalAlignment GridViewItemPresenterVerticalContentAlignment { get; set; }Public ReadWrite Property GridViewItemPresenterVerticalContentAlignment As VerticalAlignmentpublic VerticalAlignment GridViewItemPresenterVerticalContentAlignment { get; set; }

    Property Value

    Remarks

    Important

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

  • GridViewItemPresenterVerticalContentAlignmentProperty
    GridViewItemPresenterVerticalContentAlignmentProperty
    GridViewItemPresenterVerticalContentAlignmentProperty
    GridViewItemPresenterVerticalContentAlignmentProperty
    Note

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

    Identifies the GridViewItemPresenterVerticalContentAlignment dependency property.

    public static DependencyProperty GridViewItemPresenterVerticalContentAlignmentProperty { get; }public static DependencyProperty GridViewItemPresenterVerticalContentAlignmentProperty { get; }Public Static ReadOnly Property GridViewItemPresenterVerticalContentAlignmentProperty As DependencyPropertypublic static DependencyProperty GridViewItemPresenterVerticalContentAlignmentProperty { get; }

    Property Value

    Remarks

    Important

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

  • PlaceholderBackground
    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 Brushpublic Brush PlaceholderBackground { get; set; }
    <GridViewItemPresenter PlaceholderBackground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • PlaceholderBackgroundProperty
    PlaceholderBackgroundProperty
    PlaceholderBackgroundProperty
    PlaceholderBackgroundProperty

    Identifies the PlaceholderBackground dependency property.

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

    Property Value

  • PointerOverBackground
    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 Brushpublic Brush PointerOverBackground { get; set; }
    <GridViewItemPresenter PointerOverBackground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • PointerOverBackgroundMargin
    PointerOverBackgroundMargin
    PointerOverBackgroundMargin
    PointerOverBackgroundMargin

    Gets or sets the margin of the background displayed for pointer-over input actions in the GridView item cell, versus the cell.

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

    Property Value

  • PointerOverBackgroundMarginProperty
    PointerOverBackgroundMarginProperty
    PointerOverBackgroundMarginProperty
    PointerOverBackgroundMarginProperty

    Identifies the PointerOverBackgroundMargin dependency property.

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

    Property Value

  • PointerOverBackgroundProperty
    PointerOverBackgroundProperty
    PointerOverBackgroundProperty
    PointerOverBackgroundProperty

    Identifies the PointerOverBackground dependency property.

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

    Property Value

  • ReorderHintOffset
    ReorderHintOffset
    ReorderHintOffset
    ReorderHintOffset

    Gets or sets the amount that the reorder hint is offset.

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

    Property Value

    • double
      double
      double

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

    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
    ReorderHintOffsetProperty

    Identifies the ReorderHintOffset dependency property.

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

    Property Value

  • SelectedBackground
    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 Brushpublic Brush SelectedBackground { get; set; }
    <GridViewItemPresenter SelectedBackground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • SelectedBackgroundProperty
    SelectedBackgroundProperty
    SelectedBackgroundProperty
    SelectedBackgroundProperty

    Identifies the SelectedBackground dependency property.

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

    Property Value

  • SelectedBorderThickness
    SelectedBorderThickness
    SelectedBorderThickness
    SelectedBorderThickness

    Gets or sets the thickness of the border around an item that's selected.

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

    Property Value

  • SelectedBorderThicknessProperty
    SelectedBorderThicknessProperty
    SelectedBorderThicknessProperty
    SelectedBorderThicknessProperty

    Identifies the SelectedBorderThickness dependency property.

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

    Property Value

  • SelectedForeground
    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 Brushpublic Brush SelectedForeground { get; set; }
    <GridViewItemPresenter SelectedForeground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • SelectedForegroundProperty
    SelectedForegroundProperty
    SelectedForegroundProperty
    SelectedForegroundProperty

    Identifies the SelectedForeground dependency property.

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

    Property Value

  • SelectedPointerOverBackground
    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 Brushpublic Brush SelectedPointerOverBackground { get; set; }
    <GridViewItemPresenter SelectedPointerOverBackground="themeResourceReference"/>
    
    

    Property Value

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

    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.

  • SelectedPointerOverBackgroundProperty
    SelectedPointerOverBackgroundProperty
    SelectedPointerOverBackgroundProperty
    SelectedPointerOverBackgroundProperty

    Identifies the SelectedPointerOverBackground dependency property.

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

    Property Value

  • SelectedPointerOverBorderBrush
    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.

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

    Property Value

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

    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.

  • SelectedPointerOverBorderBrushProperty
    SelectedPointerOverBorderBrushProperty
    SelectedPointerOverBorderBrushProperty
    SelectedPointerOverBorderBrushProperty

    Identifies the SelectedPointerOverBorderBrush dependency property.

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

    Property Value

  • SelectionCheckMarkVisualEnabled
    SelectionCheckMarkVisualEnabled
    SelectionCheckMarkVisualEnabled
    SelectionCheckMarkVisualEnabled

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

    public bool SelectionCheckMarkVisualEnabled { get; set; }public bool SelectionCheckMarkVisualEnabled { get; set; }Public ReadWrite Property SelectionCheckMarkVisualEnabled As boolpublic bool SelectionCheckMarkVisualEnabled { get; set; }
    <gridViewItemPresenter SelectionCheckMarkVisualEnabled="bool"/>
    

    Property Value

    • bool
      bool
      bool

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

  • SelectionCheckMarkVisualEnabledProperty
    SelectionCheckMarkVisualEnabledProperty
    SelectionCheckMarkVisualEnabledProperty
    SelectionCheckMarkVisualEnabledProperty

    Identifies the SelectionCheckMarkVisualEnabled dependency property.

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

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.UI.Xaml.Controls.Primitives.dll