FrameworkContentElement.BringIntoView 方法

定义

尝试将此元素放入其所在的任何可滚动区域内的视图中。Attempts to bring this element into view, within any scrollable regions it is contained within.

public:
 void BringIntoView();
public void BringIntoView ();
member this.BringIntoView : unit -> unit
Public Sub BringIntoView ()

注解

通过调用此方法,您可以有效地在包含该元素的任何父可滚动区域上调用 MakeVisible (父对象可以很好地是 FrameworkElement,而不是 FrameworkContentElement)。By calling this method, you effectively will call MakeVisible on any parent scrollable area that contains the element (the parent may very well be a FrameworkElement, not a FrameworkContentElement). 如果此元素不包含在可滚动区域中,则仍会引发该事件,但不会产生任何影响。If this element is not contained in a scrollable area, the event is still raised, but there will be no effect.

适用于

另请参阅