Version

PrepareContainerForRecordPresenter Method (ViewBase)

Associates the wrapper element returned from GetContainerForRecordPresenter with the specified RecordPresenter element.
Syntax
'Declaration
 
Protected Friend Overridable Sub PrepareContainerForRecordPresenter( _
   ByVal panel As Panel, _
   ByVal wrapper As DependencyObject, _
   ByVal recordPresenter As RecordPresenter _
) 
protected internal virtual void PrepareContainerForRecordPresenter( 
   Panel panel,
   DependencyObject wrapper,
   RecordPresenter recordPresenter
)

Parameters

panel
The System.Windows.Controls.Panel derived element that contains the wrapper element.
wrapper
The wrapper element that was returned from the GetContainerForRecordPresenter.
recordPresenter
The RecordPresenter to associate with the wrapper.
Remarks

This method, along with the GetContainerForRecordPresenter, only need to be overridden if the view requires a specialized wrapper element around each RecordPresenter element. You would create a wrapper element in GetContainerForRecordPresenter and associate it with a record presenter in this method.

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