原文: WPF中的事件清單 以下是WPF中的常見事件彙總表(按字母排序),翻譯不見得準确,但希望對你有用。
事件 | 描述 |
---|---|
Annotation.AnchorChanged | 新增、移除或修改 Anchor 元素時發生。 |
Annotation.AuthorChanged | 新增、移除或修改 Author 元素時發生。 |
Annotation.CargoChanged | 新增、移除或修改 Cargo 元素時發生。 |
AnnotationStore.AnchorChanged | 存放區中任何注釋上的 Anchor 元素變化時發生。 |
AnnotationStore.AuthorChanged | 存放區中任何注釋上的 Author 元素變化時發生。 |
AnnotationStore.CargoChanged | 存放區中任何附注上的 Cargo 元素變化時發生。 |
AnnotationStore.StoreContentChanged | 在存放區中新增或删除注釋時發生。 |
Application.Activated | 應用程式變成前景應用程式時發生。 |
Application.Deactivated | 應用程式停止作為前景應用程式時發生。 |
Application.DispatcherUnhandledException | 引發無法處理的例外時發生。 |
Application.Exit | 應用程式即将關閉之前發生。 |
Application.FragmentNavigation | 應用程式内的一或多個 NavigationService 物件引發 FragmentNavigation 時發生。 |
Application.LoadCompleted | 應用程式内的一或多個 NavigationService 物件引發 LoadCompleted 時發生。 |
Application.Navigated | 應用程式内的一或多個 NavigationService 物件引發 Navigated 時發生。 |
Application.Navigating | 應用程式内的一或多個 NavigationService 物件引發 Navigating 時發生。 |
Application.NavigationProgress | 應用程式内的一或多個 NavigationService 物件引發 NavigationProgress 時發生。 |
Application.NavigationStopped | 應用程式内的一或多個 NavigationService 物件引發 NavigationStopped 時發生。 |
Application.SessionEnding | 使用者登出或關閉作業系統結束 Windows 工作階段時發生。 |
Application.Startup | 呼叫 Application 物件的 Run 方法時發生。 |
BitmapDecoder.DownloadCompleted | BitmapDecoder 完成點陣圖内容下載下傳時發生。 |
BitmapDecoder.DownloadProgress | BitmapDecoder 進行點陣圖内容下載下傳時發生。 |
BitmapSource.DownloadCompleted | 點陣圖内容完成下載下傳時發生。 |
BitmapSource.DownloadProgress | 點陣圖内容的下載下傳進度變化時發生。 |
ButtonBase.Click | 按一下按鈕時發生。 |
Clock.CurrentGlobalSpeedInvalidated | 更新時脈速度時發生。 |
Clock.CurrentStateInvalidated | 更新時鐘的 CurrentState 屬性時發生。 |
Clock.CurrentTimeInvalidated | 時鐘的 CurrentTime 變成無效時發生。 |
CollectionView.CurrentChanged | CurrentItem 變化 後發生。 |
CollectionView.CurrentChanging | 變化貨币時發生。 |
CollectionViewSource.Filter | 會提供篩選邏輯。 |
ComboBox.DropDownClosed | 無法再看到下拉式方塊的下拉部分時發生。 |
ComboBox.DropDownOpened | 開啟下拉式方塊的快顯清單時發生。 |
CommandBinding.CanExecute | 此 CommandBinding 的相關指令開始進行檢查,以判斷是否可以在指令目标上執行指令時發生。 |
CommandBinding.Executed | 執行與此 CommandBinding 相關的指令時發生。 |
CommandBinding.PreviewCanExecute | 此 CommandBinding 的相關指令開始進行檢查,以判斷是否可以在目前的指令目标上執行指令時發生。 |
CommandBinding.PreviewExecuted | |
ContentElement.DragEnter | 當輸入系統報告出将這個元素當做拖曳目标的基礎拖曳事件時發生。 |
ContentElement.DragLeave | 當輸入系統報告出将這個元素當做拖曳來源的基礎拖曳事件時發生。 |
ContentElement.DragOver | 當輸入系統報告出将這個元素當做可能放下目标的基礎拖曳事件時發生。 |
ContentElement.Drop | 當輸入系統報告出将這個元素當做放下目标的基礎放下事件時發生。 |
ContentElement.GiveFeedback | 與此事件相關的基礎拖放事件輸入系統報告産生時發生。 |
ContentElement.GotFocus | 當這個元素取得邏輯焦點時發生。 |
ContentElement.GotKeyboardFocus | 當鍵盤将焦點放在此元素時發生。 |
ContentElement.GotMouseCapture | 當這個元素撷取滑鼠時發生。 |
ContentElement.GotStylusCapture | 當這個元素撷取手寫筆時發生。 |
ContentElement.IsEnabledChanged | 當這個元素的 IsEnabled 屬性值變化時發生。 |
ContentElement.IsKeyboardFocusedChanged | 當這個元素的 IsKeyboardFocused 屬性值變化時發生。 |
ContentElement.IsKeyboardFocusWithinChanged | 當這個元素的 IsKeyboardFocusWithinChanged 屬性值變化時發生。 |
ContentElement.IsMouseCapturedChanged | 當這個元素的 IsMouseCaptured 屬性值變化時發生。 |
ContentElement.IsMouseCaptureWithinChanged | 這個元素的 IsMouseCaptureWithinProperty 欄位值變化時發生。 |
ContentElement.IsMouseDirectlyOverChanged | 當這個元素的 IsMouseDirectlyOver 屬性值變化時發生。 |
ContentElement.IsStylusCapturedChanged | 當這個元素的 IsStylusCaptured 屬性值變化時發生。 |
ContentElement.IsStylusCaptureWithinChanged | 這個元素的 IsStylusCaptureWithin 屬性值變化時發生。 |
ContentElement.IsStylusDirectlyOverChanged | 當這個元素的 IsStylusDirectlyOver 屬性值變化時發生。 |
ContentElement.KeyDown | 當鍵盤将焦點放在這個元素上的同時按下按鍵時發生。 |
ContentElement.KeyUp | 當鍵盤将焦點放在這個元素上的同時放開按鍵時發生。 |
ContentElement.LostFocus | 當這個元素失去邏輯焦點時發生。 |
ContentElement.LostKeyboardFocus | 當鍵盤不再将焦點放在此元素時發生。 |
ContentElement.LostMouseCapture | 當這個元素失去滑鼠撷取時發生。 |
ContentElement.LostStylusCapture | 當這個元素失去手寫筆撷取時發生。 |
ContentElement.MouseDown | 滑鼠名額在這個元素上的同時按下滑鼠按鈕時發生。如果 ContentElement 是 Button 控制項,表示 Windows Presentation Foundation 未登入這個事件。請改用 PreviewMouseDown 或 Click 事件。 |
ContentElement.MouseEnter | 當滑鼠名額進入這個元素的界限時發生。 |
ContentElement.MouseLeave | 當滑鼠名額離開這個元素的界限時發生。 |
ContentElement.MouseLeftButtonDown | 當滑鼠名額在這個元素上的同時按下滑鼠左鍵時發生。 |
ContentElement.MouseLeftButtonUp | 當滑鼠名額在這個元素上的同時放開滑鼠左鍵時發生。 |
ContentElement.MouseMove | 滑鼠名額在這個元素上的同時移動滑鼠名額時發生。 |
ContentElement.MouseRightButtonDown | 當滑鼠名額在這個元素上的同時按下滑鼠右鍵時發生。 |
ContentElement.MouseRightButtonUp | 當滑鼠名額在這個元素上的同時放開滑鼠右鍵時發生。 |
ContentElement.MouseUp | 在這個元素上放開任何滑鼠按鈕時發生。 |
ContentElement.MouseWheel | 使用者在滑鼠名額于這個元素上的同時滾動滑鼠滾輪時發生。 |
ContentElement.PreviewDragEnter | |
ContentElement.PreviewDragLeave | |
ContentElement.PreviewDragOver | |
ContentElement.PreviewDrop | |
ContentElement.PreviewGiveFeedback | 在啟動拖放作業時發生。 |
ContentElement.PreviewGotKeyboardFocus | |
ContentElement.PreviewKeyDown | |
ContentElement.PreviewKeyUp | |
ContentElement.PreviewLostKeyboardFocus | |
ContentElement.PreviewMouseDown | 滑鼠名額在這個元素上的同時按下滑鼠按鈕時發生。 |
ContentElement.PreviewMouseLeftButtonDown | |
ContentElement.PreviewMouseLeftButtonUp | |
ContentElement.PreviewMouseMove | 當滑鼠名額在這個元素上的同時移動滑鼠名額時發生。 |
ContentElement.PreviewMouseRightButtonDown | |
ContentElement.PreviewMouseRightButtonUp | |
ContentElement.PreviewMouseUp | 當滑鼠名額在這個元素上的同時放開滑鼠按鈕時發生。 |
ContentElement.PreviewMouseWheel | |
ContentElement.PreviewQueryContinueDrag | 在拖放作業期間,當鍵盤或滑鼠按鈕狀态變化時發生。 |
ContentElement.PreviewStylusButtonDown | 當名額在這個元素上的同時按下手寫筆按鈕時發生。 |
ContentElement.PreviewStylusButtonUp | 當名額在這個元素上的同時放開手寫筆按鈕時發生。 |
ContentElement.PreviewStylusDown | 當手寫筆在這個元素上的同時手寫筆接觸到數位闆時發生。 |
ContentElement.PreviewStylusInAirMove | 當手寫筆移到元素上但實際上沒有接觸數位闆時發生。 |
ContentElement.PreviewStylusInRange | 當手寫筆相當靠近數位闆而能檢測到,且手寫筆同時在這個元素上時發生。 |
ContentElement.PreviewStylusMove | 當手寫筆在元素上的同時移動手寫筆時發生。若要引發這個事件,必須在數位闆檢測到手寫筆時移動手寫筆,否則會改為引發 PreviewStylusInAirMove。 |
ContentElement.PreviewStylusOutOfRange | 當手寫筆離數位闆太遠而無法檢測到時發生。 |
ContentElement.PreviewStylusSystemGesture | 使用者執行其中一個手寫筆筆勢時發生。 |
ContentElement.PreviewStylusUp | 當手寫筆在這個元素上的同時,使用者将手寫筆移開數位闆時發生。 |
ContentElement.PreviewTextInput | 這個元素使用與裝置無關的方法取得文字時發生。 |
ContentElement.QueryContinueDrag | |
ContentElement.QueryCursor | 在要求顯示遊标時發生。每次滑鼠名額移到新位置時就會在元素上引發這個事件,表示可能需要根據滑鼠名額的新位置變化遊标物件。 |
ContentElement.StylusButtonDown | |
ContentElement.StylusButtonUp | |
ContentElement.StylusDown | |
ContentElement.StylusEnter | 當手寫筆進入這個元素的界限時發生。 |
ContentElement.StylusInAirMove | |
ContentElement.StylusInRange | 手寫筆相當靠近數位闆而能檢測到,且手寫筆同時在這個元素上時發生。 |
ContentElement.StylusLeave | 當手寫筆離開元素的界限時發生。 |
ContentElement.StylusMove | 當手寫筆移到這個元素上時發生。若要引發這個事件,必須在手寫筆在數位闆上的同時移動手寫筆,否則會改為引發 StylusInAirMove。 |
ContentElement.StylusOutOfRange | 手寫筆離數位闆太遠而無法檢測到,且手寫筆同時在這個元素上時發生。 |
ContentElement.StylusSystemGesture | 當使用者執行其中一個手寫筆筆勢時發生。 |
ContentElement.StylusUp | |
ContentElement.TextInput | |
ContextMenu.Closed | 關閉快顯功能表的特定例項時發生。 |
ContextMenu.Opened | 開啟快顯功能表的特定例項時發生。 |
Control.MouseDoubleClick | 以滑鼠按兩下控制項時發生。 |
Control.PreviewMouseDoubleClick | 使用者按兩下或更多下滑鼠按鈕時發生。 |
DataSourceProvider.DataChanged | Data 屬性有新值時發生。 |
DataTrigger.Invalidated | |
Dispatcher.ShutdownFinished | 發送器關閉完成時發生。 |
Dispatcher.ShutdownStarted | 發送器開始關閉時發生。 |
Dispatcher.UnhandledException | 擲回執行緒例外,并在使用 Invoke 或 BeginInvoke 執行委派期間未攔截該例外時發生。 |
Dispatcher.UnhandledExceptionFilter | 擲回執行緒例外,并在使用 Invoke 或 BeginInvoke 于篩選階段執行委派期間未攔截該例外時發生。 |
DispatcherHooks.DispatcherInactive | 發送器沒有要處理的作業時發生。 |
DispatcherHooks.OperationAborted | 中止作業時發生。 |
DispatcherHooks.OperationCompleted | 完成作業時發生。 |
DispatcherHooks.OperationPosted | 作業張貼到發送器時發生。 |
DispatcherHooks.OperationPriorityChanged | 作業的優先順序變化時發生。 |
DispatcherOperation.Aborted | 中止與此 DispatcherOperation 相關之發送器伫列上的委派時發生。 |
DispatcherOperation.Completed | 完成與此 DispatcherOperation 相關之發送器伫列上的委派時發生。 |
DispatcherTimer.Tick | 已超過計時器間隔而且停用計時器時發生。 |
DocumentPage.PageDestroyed | 引述 DocumentPage 的視覺元素已損壞且無法用于顯示時發生。 |
DocumentPageView.PageConnected | 已連接配接 DocumentPage 的視覺元素時發生。 |
DocumentPageView.PageDisconnected | 已中斷連接配接 DocumentPage 的視覺元素時發生。 |
DocumentPaginator.ComputePageCountCompleted | ComputePageCountAsync 作業完成時發生。 |
DocumentPaginator.GetPageCompleted | GetPageAsync 完成時發生。 |
DocumentPaginator.PagesChanged | 變化檔案内容時發生。 |
DocumentReferenceCollection.CollectionChanged | 新增或移除元素時發生。 |
DocumentViewerBase.PageViewsChanged | 與這個檢視器相關之 DocumentPageView 項目的集合 (由 PageViews 屬性表示) 變化時發生。 |
DrawingAttributes.AttributeChanged | DrawingAttributes 物件中的屬性變化時發生。 |
DrawingAttributes.PropertyDataChanged | 在 StrokeCollection 中新增或移除屬性資料時發生。 |
DynamicDocumentPaginator.GetPageNumberCompleted | GetPageNumberAsync 完成時發生。 |
DynamicDocumentPaginator.PaginationCompleted | 所有檔案的内容都已标上頁碼時發生。 |
DynamicDocumentPaginator.PaginationProgress | 一或多個内容頁面已标上頁碼時發生。 |
Expander.Collapsed | 關閉 Expander 控制項的内容視窗,而且隻能看見标題時發生。 |
Expander.Expanded | 開啟 Expander 控制項的内容視窗以顯示此标題和内容時發生。 |
FileDialog.FileOk | 使用者按一下 OpenFileDialog 的 [開啟] 按鈕或 SaveFileDialog 的 [儲存] 按鈕,以選取檔桉名稱時發生。 |
Frame.ContentRendered | 在顯示架構内容之後發生。 |
Frame.FragmentNavigation | 開始導覽到 XAML 内容片段 (這在載入來源 XAML 頁面之後發生) 時發生。 |
Frame.LoadCompleted | 已載入或剖析整個來源内容時發生。 |
Frame.Navigated | 找到來源内容并開始下載下傳時發生。 |
Frame.Navigating | 導覽即将開始之前發生。 |
Frame.NavigationProgress | 下載下傳期間會定期發生,以提供導覽進度資訊。 |
Frame.NavigationStopped | 在導覽期間呼叫 StopLoading 方法時發生。 |
FrameworkContentElement.ContextMenuClosing | 即将關閉 FrameworkContentElement 上的快顯功能表之前發生。 |
FrameworkContentElement.ContextMenuOpening | 已開啟 FrameworkContentElement 上的快顯功能表時發生。 |
FrameworkContentElement.DataContextChanged | 變化 FrameworkContentElement 的資料内容時發生。 |
FrameworkContentElement.Initialized | 初始化 FrameworkContentElement 時發生。這與 IsInitialized 屬性的值從 False (或未定義) 變化為 True 的情況一緻。 |
FrameworkContentElement.Loaded | 已配置、顯示 FrameworkContentElement 并準備進行互動時發生。 |
FrameworkContentElement.SourceUpdated | 參與 FrameworkContentElement 上之繫結的相關資料來源變化時發生。 |
FrameworkContentElement.TargetUpdated | 參與 FrameworkContentElement 上之繫結的相關目标屬性變化時發生。 |
FrameworkContentElement.ToolTipClosing | 即将關閉 FrameworkContentElement 上的工具提示之前發生。 |
FrameworkContentElement.ToolTipOpening | 已開啟元素上的工具提示時發生。 |
FrameworkContentElement.Unloaded | 從所載入元素的元素樹狀目錄中移除 FrameworkContentElement 時發生。 |
FrameworkElement.ContextMenuClosing | 即将關閉 FrameworkElement 上的快顯功能表之前發生。 |
FrameworkElement.ContextMenuOpening | 已開啟 FrameworkElement 上的快顯功能表時發生。 |
FrameworkElement.DataContextChanged | 變化 FrameworkElement 的資料内容時發生。 |
FrameworkElement.Initialized | 初始化 FrameworkElement 時發生。這與 IsInitialized 屬性的值從 False (或未定義) 變化為 True 的情況一緻。 |
FrameworkElement.Loaded | 已配置、顯示 FrameworkElement 并準備進行互動時發生。 |
FrameworkElement.RequestBringIntoView | 在這個元素上呼叫 BringIntoView 時發生。 |
FrameworkElement.SizeChanged | ActualHeight 或 ActualWidth 屬性變化 FrameworkElement 上的值時發生。 |
FrameworkElement.SourceUpdated | 參與 FrameworkElement 上之繫結的相關資料來源變化時發生。 |
FrameworkElement.TargetUpdated | 參與 FrameworkElement 上之繫結的相關目标屬性變化時發生。 |
FrameworkElement.ToolTipClosing | 即将關閉 FrameworkElement 上的工具提示之前發生。 |
FrameworkElement.ToolTipOpening | 已開啟 FrameworkElement 上的工具提示時發生。 |
FrameworkElement.Unloaded | 從所載入元素的元素樹狀目錄中移除 FrameworkElement 時發生。 |
Freezable.Changed | 修改這個 Freezable 物件或内含物件時發生。 |
GridViewColumnCollection.ColumnCollectionChanged | |
HwndHost.MessageHook | 對主要視窗所接收之每則無法處理的訊息發生。 |
HwndSource.AutoResized | 版面配置使得 HwndSource 自動調整大小時發生。 |
HwndSource.Disposed | 處置 HwndSource 物件時發生。 |
HwndSource.SizeToContentChanged | HwndSource 物件的 SizeToContent 屬性值變化時發生。 |
Hyperlink.Click | 按一下滑鼠左鍵時發生。 |
Hyperlink.RequestNavigate | 要求導覽事件時發生。 |
ICollectionView.CurrentChanged | 實作 ICollectionView 介面時,在變化目前的項目之後引發這個事件。 |
ICollectionView.CurrentChanging | 實作 ICollectionView 介面時,在變化目前的項目之前引發這個事件。事件處理常式可以取消此事件。 |
ICommand.CanExecuteChanged | 執行指令的能力變化時發生。 |
IInputElement.GotKeyboardFocus | |
IInputElement.GotMouseCapture | 元素撷取滑鼠時發生。 |
IInputElement.GotStylusCapture | 元素撷取手寫筆時發生。 |
IInputElement.KeyDown | 鍵盤将焦點放在這個元素上的同時按下按鍵時發生。 |
IInputElement.KeyUp | 鍵盤将焦點放在這個元素上的同時放開按鍵時發生。 |
IInputElement.LostKeyboardFocus | 鍵盤不再将焦點放在此元素時發生。 |
IInputElement.LostMouseCapture | 元素失去滑鼠撷取時發生。 |
IInputElement.LostStylusCapture | 元素失去手寫筆撷取時發生。 |
IInputElement.MouseEnter | 滑鼠名額進入元素的界限時發生。 |
IInputElement.MouseLeave | 滑鼠名額離開元素的界限時發生。 |
IInputElement.MouseLeftButtonDown | 滑鼠名額在元素上的同時按下滑鼠左鍵時發生。 |
IInputElement.MouseLeftButtonUp | 滑鼠名額在元素上的同時放開滑鼠左鍵時發生。 |
IInputElement.MouseMove | 滑鼠名額在元素上的同時移動滑鼠名額時發生。 |
IInputElement.MouseRightButtonDown | 滑鼠名額在元素上的同時按下滑鼠右鍵時發生。 |
IInputElement.MouseRightButtonUp | 滑鼠名額在元素上的同時放開滑鼠右鍵時發生。 |
IInputElement.MouseWheel | 滑鼠名額在元素上的同時移動滑鼠滾輪時發生。 |
IInputElement.PreviewGotKeyboardFocus | 鍵盤将焦點放在此元素時發生。 |
IInputElement.PreviewKeyDown | |
IInputElement.PreviewKeyUp | |
IInputElement.PreviewLostKeyboardFocus | |
IInputElement.PreviewMouseLeftButtonDown | |
IInputElement.PreviewMouseLeftButtonUp | |
IInputElement.PreviewMouseMove | |
IInputElement.PreviewMouseRightButtonDown | |
IInputElement.PreviewMouseRightButtonUp | |
IInputElement.PreviewMouseWheel | |
IInputElement.PreviewStylusButtonDown | 手寫筆在元素上的同時按下手寫筆按鈕時發生。 |
IInputElement.PreviewStylusButtonUp | 手寫筆在元素上的同時放開手寫筆按鈕時發生。 |
IInputElement.PreviewStylusDown | 手寫筆在元素上的同時接觸數位闆時發生。 |
IInputElement.PreviewStylusInAirMove | 手寫筆移到元素上但沒有接觸數位闆時發生。 |
IInputElement.PreviewStylusInRange | 手寫筆很靠近數位闆而可以檢測到時發生。 |
IInputElement.PreviewStylusMove | 手寫筆在元素上的同時移動手寫筆時發生。 |
IInputElement.PreviewStylusOutOfRange | |
IInputElement.PreviewStylusSystemGesture | 檢測到其中一個手寫筆筆勢 (例如「輕敲」或「拖曳」) 時發生。 |
IInputElement.PreviewStylusUp | 手寫筆在元素上的同時移開數位闆時發生。 |
IInputElement.PreviewTextInput | 元素使用與裝置無關的方法取得文字時發生。 |
IInputElement.StylusButtonDown | |
IInputElement.StylusButtonUp | |
IInputElement.StylusDown | |
IInputElement.StylusEnter | 手寫筆遊标進入元素的界限時發生。 |
IInputElement.StylusInAirMove | |
IInputElement.StylusInRange | |
IInputElement.StylusLeave | 手寫筆遊标離開元素的界限時發生。 |
IInputElement.StylusMove | 手寫筆遊标移到元素上時發生。 |
IInputElement.StylusOutOfRange | |
IInputElement.StylusSystemGesture | |
IInputElement.StylusUp | |
IInputElement.TextInput | |
IncrementalLassoHitTester.SelectionChanged | 套索路徑選取或取消選取筆墨筆觸時發生。 |
IncrementalStrokeHitTester.StrokeHit | IncrementalStrokeHitTester 與筆墨筆觸交集時發生。 |
InkCanvas.ActiveEditingModeChanged | 目前的編輯模式變化時發生。 |
InkCanvas.DefaultDrawingAttributesReplaced | 取代 DefaultDrawingAttributes 屬性時發生。 |
InkCanvas.EditingModeChanged | 當 InkCanvas 物件的 EditingMode 屬性已變化時發生。 |
InkCanvas.EditingModeInvertedChanged | InkCanvas 物件的 EditingModeInverted 屬性已變化時發生。 |
InkCanvas.Gesture | InkCanvas 檢測到筆勢時發生。 |
InkCanvas.SelectionChanged | InkCanvas 上的選取變化時發生。 |
InkCanvas.SelectionChanging | 選取新的筆墨筆觸或元素集合時發生。 |
InkCanvas.SelectionMoved | 使用者移動筆觸或元素的選取時發生。 |
InkCanvas.SelectionMoving | 開始移動選取的筆觸和元素時發生。 |
InkCanvas.SelectionResized | 使用者調整筆觸或元素的選取大小時發生。 |
InkCanvas.SelectionResizing | 開始調整選取的筆觸和元素大小時發生。 |
InkCanvas.StrokeCollected | 使用者繪製的筆觸加入 Strokes 屬性時發生。 |
InkCanvas.StrokeErased | 使用者清除筆觸時發生。 |
InkCanvas.StrokeErasing | 使用者即将清除筆觸之前發生。 |
InkCanvas.StrokesReplaced | 取代 Strokes 屬性時發生。 |
INotifyCollectionChanged.CollectionChanged | 透過新增或移除項目而變化集合時發生。 |
InputLanguageManager.InputLanguageChanged | 完成輸入語言的變化時發生。 |
InputLanguageManager.InputLanguageChanging | 初始化輸入語言的變化時發生。 |
InputManager.HitTestInvalidatedAsync | 點選測試的結果可能已變化時發生。 |
InputManager.PostNotifyInput | PreNotifyInput 處理常式處理好原始輸入,且已引發對應的 Windows Presentation Foundation 事件之後發生。 |
InputManager.PostProcessInput | PreNotifyInput 處理常式處理好原始輸入之後發生。 |
InputManager.PreNotifyInput | 如果沒有取消原始輸入,在 PreProcessInput 處理常式處理好原始輸入後發生。 |
InputManager.PreProcessInput | InputManager 開始處理原始輸入項目時發生。 |
InputMethod.StateChanged | 輸入方法狀态 (由 ImeState 屬性表示) 變化時發生。 |
ItemContainerGenerator.ItemsChanged | 由 ItemContainerGenerator 引發,通知版面配置已變化項目集合。 |
ItemContainerGenerator.StatusChanged | 由 ItemContainerGenerator 引發,通知控制項狀态已變化。 |
ListBoxItem.Selected | 選取 ListBoxItem 時發生。 |
ListBoxItem.Unselected | 取消 ListBoxItem 選取時發生。 |
MediaElement.BufferingEnded | 結束媒體緩沖處理時發生。 |
MediaElement.BufferingStarted | 已開始媒體緩沖處理時發生。 |
MediaElement.MediaEnded | 已結束媒體時發生。 |
MediaElement.MediaFailed | 遇到媒體錯誤時發生。 |
MediaElement.MediaOpened | 完成媒體載入時發生。 |
MediaPlayer.BufferingEnded | 完成媒體緩沖處理時發生。 |
MediaPlayer.BufferingStarted | 已開啟媒體緩沖處理時發生。 |
MediaPlayer.MediaEnded | 媒體已完成播放時發生。 |
MediaPlayer.MediaFailed | |
MediaPlayer.MediaOpened | 開啟媒體時發生。 |
MenuItem.Checked | 核取功能表項目時發生。 |
MenuItem.Click | 使用針對功能表項目定義的快速鍵或便捷鍵點選或選取功能表項目時發生。 |
MenuItem.SubmenuClosed | IsSubmenuOpen 屬性的狀态變化為 false 時發生。 |
MenuItem.SubmenuOpened | IsSubmenuOpen 屬性的狀态變化為 True 時發生。 |
MenuItem.Unchecked | 清除功能表項目的核取方塊時發生。 |
MultiDataTrigger.Invalidated | |
MultiTrigger.Invalidated | |
NavigationService.FragmentNavigation | |
NavigationService.LoadCompleted | |
NavigationService.Navigated | |
NavigationService.Navigating | |
NavigationService.NavigationProgress | |
NavigationService.NavigationStopped | 呼叫 NavigationService 物件的 StopLoading 方法時發生。 |
NavigationWindow.FragmentNavigation | |
NavigationWindow.LoadCompleted | |
NavigationWindow.Navigated | |
NavigationWindow.Navigating | |
NavigationWindow.NavigationProgress | |
NavigationWindow.NavigationStopped | |
ObservableCollection`1.CollectionChanged | |
PackageDigitalSignatureManager.InvalidSignatureEvent | VerifySignatures 發現無效的簽章時發生。 |
PageContent.GetPageRootCompleted | GetPageRootAsync 已完成時發生。 |
PageFunction`1.Return | |
PasswordBox.PasswordChanged | Password 屬性的值變化時發生。 |
Popup.Closed | IsOpen 屬性變化為 False 時發生。 |
Popup.Opened | IsOpen 屬性變化為 True 時發生。 |
PresentationSource.ContentRendered | 已顯示内容并準備用于使用者互動時發生。 |
PrintDialogBase.PrinterChanged | |
PrintDialogBase.PrintTicketChanged | |
PrintDialogBase.PrintTicketChanging | |
PrintDialogBase.PropertyChanged | |
RangeBase.ValueChanged | 範圍值變化時發生。 |
RoutedCommand.CanExecuteChanged | 在目前的指令目标上執行指令的能力變化時發生。 |
ScrollBar.Scroll | 使用者使用滑鼠移動 Thumb 控制項,且透過捲軸捲動内容時會發生一次或數次。 |
ScrollViewer.ScrollChanged | 檢測到捲動位置、範圍或檢視區大小的變化時發生。 |
Selector.SelectionChanged | 選取器的選取範圍變化時發生。 |
SerializerWriter.WritingCompleted | 在衍生類别中覆寫時,會在完成寫入作業時發生。 |
SerializerWriter.WritingPrintTicketRequired | 在衍生類别中覆寫時,會在使用 Write 或 WriteAsync 方法即将把 PrintTicket 加入資料流之前發生。 |
SerializerWriter.WritingProgressChanged | 在衍生類别中覆寫時,會在 SerializerWriter 更新進度時發生。 |
Stroke.DrawingAttributesChanged | 與 Stroke 物件相關的 DrawingAttributes 變化時發生。 |
Stroke.DrawingAttributesReplaced | 取代 Stroke 物件的繪圖屬性時發生。 |
Stroke.Invalidated | Stroke 的外觀變化時發生。 |
Stroke.PropertyDataChanged | Stroke 物件上的自訂屬性變化時發生。 |
Stroke.StylusPointsChanged | StylusPoints 屬性變化時發生。 |
Stroke.StylusPointsReplaced | StylusPoints 屬性指派了新的 StylusPointCollection 時發生。 |
StrokeCollection.PropertyDataChanged | 在 StrokeCollection 中新增或移除自訂屬性時發生。 |
StrokeCollection.StrokesChanged | 集合中的 Stroke 變化時發生。 |
StylusPointCollection.Changed | StylusPointCollection 變化時發生。 |
TextBoxBase.SelectionChanged | 已變化文字選取時發生。 |
TextBoxBase.TextChanged | 文字元素中的内容變化時發生。 |
TextRange.Changed | 調整範圍位置以涵蓋新的内容範圍時發生。 |
Thumb.DragCompleted | Thumb 控制項失去滑鼠撷取時發生。 |
Thumb.DragDelta | Thumb 控制項具有邏輯焦點和滑鼠撷取,且滑鼠變化位置時會發生一次或數次。 |
Thumb.DragStarted | Thumb 控制項接收邏輯焦點和滑鼠撷取時發生。 |
Timeline.CurrentGlobalSpeedInvalidated | 時間軸之時鐘的時間進度速率變化時發生。 |
Timeline.CurrentStateInvalidated | 時間軸之時鐘的 CurrentState 屬性更新時發生。 |
Timeline.CurrentTimeInvalidated | 時間軸之時鐘的 CurrentTime 屬性更新時發生。 |
ToggleButton.Checked | 核取切換按鈕時發生。 |
ToggleButton.Indeterminate | 切換按鈕的狀态不是開啟也不是關閉時發生。 |
ToggleButton.Unchecked | 取消核取切換按鈕時發生。 |
ToolTip.Closed | 關閉工具提示而且不再顯示時發生。 |
ToolTip.Opened | 工具提示消失時發生。 |
TreeView.SelectedItemChanged | 選取的項目變化時發生。 |
TreeViewItem.Collapsed | IsExpanded 屬性從 True 變為 False 時發生。 |
TreeViewItem.Expanded | IsExpanded 屬性從 False 變為 True 時發生。 |
TreeViewItem.Selected | TreeViewItem 的 IsSelected 屬性從 False 變為 True 時發生。 |
TreeViewItem.Unselected | TreeViewItem 的 IsSelected 屬性從 True 變為 False 時發生。 |
Trigger.Invalidated | |
UIElement.DragEnter | |
UIElement.DragLeave | |
UIElement.DragOver | |
UIElement.Drop | |
UIElement.GiveFeedback | |
UIElement.GotFocus | |
UIElement.GotKeyboardFocus | |
UIElement.GotMouseCapture | |
UIElement.GotStylusCapture | |
UIElement.IsEnabledChanged | |
UIElement.IsHitTestVisibleChanged | 這個元素的 IsHitTestVisible 相依屬性值變化時發生。 |
UIElement.IsKeyboardFocusedChanged | |
UIElement.IsKeyboardFocusWithinChanged | |
UIElement.IsMouseCapturedChanged | |
UIElement.IsMouseDirectlyOverChanged | |
UIElement.IsStylusCapturedChanged | |
UIElement.IsStylusDirectlyOverChanged | |
UIElement.IsVisibleChanged | 這個元素的 IsVisible 屬性值變化時發生。 |
UIElement.KeyDown | |
UIElement.KeyUp | |
UIElement.LayoutUpdated | 與現行發送器相關之各種視覺元素的版面配置變化時發生。 |
UIElement.LostFocus | |
UIElement.LostKeyboardFocus | |
UIElement.LostMouseCapture | |
UIElement.LostStylusCapture | |
UIElement.MouseDown | 名額移過這個元素的同時按下滑鼠按鈕時發生。如果 UIElement 是 Button 控制項,表示 Windows Presentation Foundation 未登入這個事件。請改用 PreviewMouseDown 或 Click 事件。 |
UIElement.MouseEnter | |
UIElement.MouseLeave | |
UIElement.MouseLeftButtonDown | |
UIElement.MouseLeftButtonUp | |
UIElement.MouseMove | 滑鼠名額移過這個元素的同時移動滑鼠名額時發生。 |
UIElement.MouseRightButtonDown | |
UIElement.MouseRightButtonUp | |
UIElement.MouseUp | |
UIElement.MouseWheel | |
UIElement.PreviewDragEnter | |
UIElement.PreviewDragLeave | |
UIElement.PreviewDragOver | |
UIElement.PreviewDrop | |
UIElement.PreviewGiveFeedback | |
UIElement.PreviewGotKeyboardFocus | |
UIElement.PreviewKeyDown | |
UIElement.PreviewKeyUp | |
UIElement.PreviewLostKeyboardFocus | |
UIElement.PreviewMouseDown | 名額移過這個元素的同時按下滑鼠按鈕時發生。 |
UIElement.PreviewMouseLeftButtonDown | |
UIElement.PreviewMouseLeftButtonUp | |
UIElement.PreviewMouseMove | |
UIElement.PreviewMouseRightButtonDown | |
UIElement.PreviewMouseRightButtonUp | |
UIElement.PreviewMouseUp | |
UIElement.PreviewMouseWheel | |
UIElement.PreviewQueryContinueDrag | |
UIElement.PreviewStylusButtonDown | |
UIElement.PreviewStylusButtonUp | |
UIElement.PreviewStylusDown | |
UIElement.PreviewStylusInAirMove | |
UIElement.PreviewStylusInRange | |
UIElement.PreviewStylusMove | 當手寫筆在元素上的同時移動手寫筆時發生。在數位闆檢測到手寫筆時必須移動手寫筆以引發這個事件,否則會改為引發 PreviewStylusInAirMove。 |
UIElement.PreviewStylusOutOfRange | |
UIElement.PreviewStylusSystemGesture | |
UIElement.PreviewStylusUp | |
UIElement.PreviewTextInput | |
UIElement.QueryContinueDrag | |
UIElement.QueryCursor | |
UIElement.StylusButtonDown | |
UIElement.StylusButtonUp | |
UIElement.StylusDown | |
UIElement.StylusEnter | |
UIElement.StylusInAirMove | |
UIElement.StylusInRange | |
UIElement.StylusLeave | |
UIElement.StylusMove | 當手寫筆移到這個元素上時發生。手寫筆在數位闆上時,必須移動手寫筆以引發這個事件,否則會改為引發 StylusInAirMove。 |
UIElement.StylusOutOfRange | |
UIElement.StylusSystemGesture | |
UIElement.StylusUp | 手寫筆在這個元素上的同時,使用者将手寫筆移開數位闆時發生。 |
UIElement.TextInput | |
Window.Activated | 視窗變成前景視窗時發生。 |
Window.Closed | 即将關閉視窗時發生。 |
Window.Closing | 呼叫Close 之後立即發生,并可用來處理取消關閉視窗。 |
Window.ContentRendered | 在顯示視窗的内容之後發生。 |
Window.Deactivated | 視窗變成背景視窗時發生。 |
Window.LocationChanged | 視窗的位置變化時發生。 |
Window.SourceInitialized | 在建立視窗的 HwndSource 物件之後,視窗顯示之前發生。 |
Window.StateChanged | 視窗的 WindowState 屬性變化時發生。 |