語言

LogicalTreeHelper.BringIntoView(DependencyObject) 方法

定義

嘗試將所請求的 UI 元素帶入視野,並在目標上引發 RequestBringIntoView 事件以回報結果。

public:
 static void BringIntoView(System::Windows::DependencyObject ^ current);
public static void BringIntoView(System.Windows.DependencyObject current);
static member BringIntoView : System.Windows.DependencyObject -> unit
Public Shared Sub BringIntoView (current As DependencyObject)

參數

current
DependencyObject

介面元素要呈現出來。

備註

通常呼叫實例方法FrameworkElement.BringIntoViewFrameworkContentElement.BringIntoView或稱為此靜態工具方法更為方便。 實例方法的行為與靜態方法的行為等價。

即使 current 提供的 UI 元素是 FrameworkContentElement,結果的事件仍然是同一 FrameworkElement.RequestBringIntoView 事件,且可透過檢查事件資料來識別起始 FrameworkContentElement 事件。

適用於

另請參閱