RequestBringIntoViewEventArgs 类

定义

RequestBringIntoView 路由事件提供数据。Provides data for the RequestBringIntoView routed event.

public ref class RequestBringIntoViewEventArgs : System::Windows::RoutedEventArgs
public class RequestBringIntoViewEventArgs : System.Windows.RoutedEventArgs
type RequestBringIntoViewEventArgs = class
    inherit RoutedEventArgs
Public Class RequestBringIntoViewEventArgs
Inherits RoutedEventArgs
继承
RequestBringIntoViewEventArgs

注解

FrameworkElement.RequestBringIntoView当你从该元素调用时,该事件由元素引发 BringIntoViewThe FrameworkElement.RequestBringIntoView event is raised by elements when you call BringIntoView from that element. 通常,此路由事件不由源处理。Generally, this routed event is not handled by the source. 不实现可滚动区域的中间类或剪切内容不应处理事件的类似概念。Intermediate classes that do not implement scrollable regions or similar concepts that clip content should not handle the event. 应该允许事件冒泡到实现可滚动区域或指定的父元素 ClipToBounds falseThe event should be permitted to bubble to parent elements that implement a scrollable region or otherwise specify ClipToBounds false. 此类父元素通常为事件提供类处理 RequestBringIntoView ,即只要给定元素请求在剪辑区域内可查看,就会发生必要的呈现逻辑。Such parent elements typically provide class handling for the RequestBringIntoView event, which is where the necessary rendering logic occurs whenever a given element requests that it be made viewable within the clipping region.

内容元素可能会导致事件由其内容宿主 (通过 BringIntoView FrameworkElement.RequestBringIntoView 从内容主机) 调用和引发来引发。Content elements can cause the event to be raised by their content hosts (through calling BringIntoView and raising FrameworkElement.RequestBringIntoView from the content host). 同样,可以通过 helper 方法请求使逻辑树元素进入视图 LogicalTreeHelper.BringIntoViewSimilarly, you can request logical tree elements to be brought into view with the helper method LogicalTreeHelper.BringIntoView.

ListBox实现一个相关但不同的方法 ScrollIntoViewA ListBox implements a related but different method ScrollIntoView.

属性

Handled

获取或设置一个值,该值指示针对路由事件(在其经过路由时)的事件处理的当前状态。Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(继承自 RoutedEventArgs)
OriginalSource

在父类进行任何可能的 Source 调整之前,获取由纯命中测试确定的原始报告源。Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(继承自 RoutedEventArgs)
RoutedEvent

获取或设置与此 RoutedEventArgs 实例关联的 RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(继承自 RoutedEventArgs)
Source

获取或设置对引发事件的对象的引用。Gets or sets a reference to the object that raised the event.

(继承自 RoutedEventArgs)
TargetObject

获取为响应事件应使之可见的对象。Gets the object that should be made visible in response to the event.

TargetRect

获取对象坐标空间(应使该坐标空间可见)内的矩形区域。Gets the rectangular region in the object's coordinate space which should be made visible.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InvokeEventHandler(Delegate, Object)

以特定于类型的方式调用事件处理程序,这样做可以提高事件系统效率。Invokes event handlers in a type-specific way, which can increase event system efficiency.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnSetSource(Object)

在派生类中重写时,每当实例的 Source 属性的值发生更改,则提供一个通知回调入口点。When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(继承自 RoutedEventArgs)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅