View Property
Collapse the table of content
Expand the table of content

ListView.View Property


Gets or sets an object that defines how the data is styled and organized in a ListView control.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ViewBase View { get; set; }

Property Value

Type: System.Windows.Controls.ViewBase

A ViewBase object that specifies how to display information in the ListView.

The .NET Framework environment includes the configurable view mode named GridView. You can also create a custom view that inherits from ViewBase. For more information, see How to: Create a Custom View Mode for a ListView.

Identifier field


Metadata properties set to true



The type of property metadata for this property is PropertyMetadata, not FrameworkPropertyMetadata.

The following example shows how to specify a GridView object as the View for a ListView control.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft