FrameworkElement.RequestBringIntoView Event

Definition

当在此元素上调用 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 

Remarks

此事件指示在可滚动区域内,引发 RequestBringIntoView 事件的元素应在父 ScrollViewer (或派生类)中可见。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. 然后,ScrollViewer 使用事件的类处理将 RequestBringIntoView 事件标记为已处理。The 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

Applies to

See also