Version

ViewBase Class

Abstract base class for all DataPresenterBase views that defines settings and defaults for the view .
Syntax
'Declaration
 
Public MustInherit Class ViewBase 
   Inherits System.Windows.FrameworkContentElement
public abstract class ViewBase : System.Windows.FrameworkContentElement 
Remarks

ViewBase derived objects are used by the XamDataCarousel, XamDataGrid, XamDataCards and XamDataPresenter to provide settings and defaults that DataPresenterBase (the base class for the XamDataCarousel, XamDataGrid, XamDataCards and XamDataPresenter controls) can query when it provides UI element generation and field layout generation services in support of the View.

While the ViewBase object is not actually reponsible for arranging items, it does expose a property called ItemsPanelType that returns the System.Windows.Controls.Panel derived type that should be used to provide layout functionality for DataRecords displayed in the view. DataPresenterBase will ensure that a panel of ItemsPanelType is generated for use by the embedded RecordListControl (the System.Windows.Controls.ListBox derived class used to display DataRecords)

Note: Three ViewBase derived views are included in this version of the controls:

  • GridView - Arranges items in a classic grid format.
  • CarouselView - Arranges items along a user defined path.
  • CardView - Arranges items as individual cards.
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.

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