FrameworkElement.RequestBringIntoView FrameworkElement.RequestBringIntoView FrameworkElement.RequestBringIntoView FrameworkElement.RequestBringIntoView Event

定义

当在此元素上调用 BringIntoView(Rect) 时发生。Occurs when BringIntoView(Rect) is called on this element.

public:
 event System::Windows::RequestBringIntoViewEventHandler ^ RequestBringIntoView;
public event System.Windows.RequestBringIntoViewEventHandler RequestBringIntoView;
member this.RequestBringIntoView : System.Windows.RequestBringIntoViewEventHandler 
Public Custom Event RequestBringIntoView As RequestBringIntoViewEventHandler 

注解

此事件向父ScrollViewer (或派生类) 表明, RequestBringIntoView引发事件的元素应在可滚动区域中可见。This event indicates to a parent ScrollViewer (or derived class) that the element that raises the RequestBringIntoView event should be made visible within the scrollable region. 然后, RequestBringIntoView将使用事件的类处理将事件标记为已处理。 ScrollViewerThe ScrollViewer will then mark the RequestBringIntoView event as handled, by using class handling of the event. 在一般RequestBringIntoView情况下, 事件数据不应由任何控制滚动区域的类或任何实例处理程序进行标记处理, 因为这样做会影响调用BringIntoView的元素的预期目标。In general RequestBringIntoView event data should not be marked handled by any class that does control a scrolling region, or by any instance handler, because doing so would interfere with the intended goal of the element that called BringIntoView.

路由事件信息Routed Event Information

标识符字段Identifier field RequestBringIntoViewEvent
路由策略Routing strategy 冒泡Bubbling
委托Delegate RequestBringIntoViewEventHandler

适用于

另请参阅