View Property

Returns/sets the ViewBase derived View that the XamDataPresenter uses to display data. If this property is not set a GridView instance is provided by default.
Public Property View As ViewBase
public ViewBase View {get; set;}

This property can be set to any of the included three views - GridView, CarouselView and CardView as well as any ViewBase derived view. You can extend the ViewBase class to provide additional custom views. Refer to the Creating Custom Views for XamDataPresenter topic in the Developer's Guide for an explanation of how to create your own custom views.

To change the View used by the control at designtime or runtime, simply set this property to an instance of a GridView, CarouselView, CardView or a custom ViewBase derived object


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also