LogicalTreeHelper.BringIntoView(DependencyObject) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試將所請求的 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 事件。