Version

XamDataPresenter Class

A DataPresenterBase derived control that can display data using different 'views', depending on the setting of its View property.
Syntax
Remarks

The control can use 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.

Unlike XamDataCarousel and XamDataGrid, this control supports dynamically changing the view at both design time and run time. To change the View used by the control at designtime or runtime, simply set the control's View property to an instance of a GridView, CarouselView or a custom ViewBase derived object

Using the XamDataPresenter control with a GridView, CarouselView or CardView (but not switching between them) is functionally equivalent to using a XamDataGrid, XamDataCarousel or XamDataCards control. If you need the flexibility to switch between these Views (or any future Views that Infragistics may release) or if you want to use a custom view that you have created, then the XamDataPresenter is the control to use. If however, your application only needs a Grid, Carousel or Card view, you may want to choose a XamDataGrid, XamDataCarousel or XamDataCards control since it is a bit more convenient to use - you can access the View's ViewSettings property directly off the control without having to drill into the View itself.

Refer to the Theory of Operation topic in the Developer's Guide for an explanation of how this control operates.

Refer to the Working with xamDataGrid, xamDataCarousel and xamDataPresenter Styling Points topic in the Developer's Guide for an explanation of how to style the control.

Refer to the Carousel Architecture Overview topic in the Developer's Guide for an explanation of how Carousel presentation works.

Requirements

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