RequestBringIntoViewEventHandler Delegate

Represents the method that handles the FrameworkElement.RequestBringIntoView event.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)

public delegate void RequestBringIntoViewEventHandler (
	Object sender,
	RequestBringIntoViewEventArgs e
/** @delegate */
public delegate void RequestBringIntoViewEventHandler (
	Object sender, 
	RequestBringIntoViewEventArgs e
In XAML, you can use delegates but you cannot define your own.



Object where the event is being handled.


Arguments of the event.

Handling this event is typically only done within elements that support a scrollable region, or otherwise deliberately set their rendering size smaller than the combined desired size of their child element content. An existing implementation that handles scrolling regions in a manner that is typically desirable for user controls is ScrollViewer. If you derive from ScrollViewer, you can register a class handler for FrameworkElement.RequestBringIntoView and supplement the base class handling of the event. You should also consider using or class-handling the class-defined ScrollChanged event instead. Alternatively, if you create an entirely custom class that does not derive from ScrollViewer, you can still add class handling by calling EventManager.RegisterClassHandler in your class initiation. For details on class handling, see Marking Routed Events as Handled, and Class Handling.

Content elements can cause the event to be raised by their content hosts (through calling BringIntoView and raising FrameworkElement.RequestBringIntoView from the content host). Similarly, you can request logical tree elements to be brought into view with the helper method LogicalTreeHelper.BringIntoView.

A ListBox implements a related but different method ScrollIntoView.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0