Version

OnItemActivated Method

Occurs after a GalleryItem has been activated. A GalleryItem is activated after the mouse pauses over the item for an amount of time that exceeds the values specified in ActivationActionDelay and ActivationInitialActionDelay properties.
Syntax
'Declaration
 
Protected Overridable Sub OnItemActivated( _
   ByVal args As RoutedEventArgs _
) 
protected virtual void OnItemActivated( 
   RoutedEventArgs args
)

Parameters

args
Remarks

The ActivationActionDelay and ActivationInitialActionDelay properties and ItemActivated event can be used to simulate the Live Preview functionality found in Office 2007 applications (e.g., Word). Specify a delay that makes sense for the preview you are doing (e.g., longer delay for more expensive previews so that your application is not constructing previews everytime a GalleryItem is moused over), and handle the ItemActivated event to display the preview.

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