Version

OnRecordCollapsing Method

Occurs before a Record is collapsed
Syntax
'Declaration
 
Protected Overridable Sub OnRecordCollapsing( _
   ByVal args As RecordCollapsingEventArgs _
) 
protected virtual void OnRecordCollapsing( 
   RecordCollapsingEventArgs args
)

Parameters

args
Remarks

The user can collapse an expanded record if the RecordPresenter's visual tree includes an expansion indicator. Programmatically this can be accomplished by setting the Records Record.IsExpanded property to false.

Note: The ActiveRecord can also be collapsed by calling the ExecuteCommand(RoutedCommand) method with the DataPresenterCommands.CollapseRecord command.

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