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 執行與此 CommandBinding 相關的命令時發生。
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 開始導覽到 XAML 內容片段 (這在載入來源 XAML 頁面之后發生) 時發生。
NavigationService.LoadCompleted 已載入或剖析整個來源內容時發生。
NavigationService.Navigated 找到來源內容並開始下載時發生。
NavigationService.Navigating 導覽即將開始之前發生。
NavigationService.NavigationProgress 下載期間會定期發生,以提供導覽進度資訊。
NavigationService.NavigationStopped 呼叫 NavigationService 物件的 StopLoading 方法時發生。
NavigationWindow.FragmentNavigation 開始導覽到 XAML 內容片段 (這在載入來源 XAML 頁面之后發生) 時發生。
NavigationWindow.LoadCompleted 已載入或剖析整個來源內容時發生。
NavigationWindow.Navigated 找到來源內容並開始下載時發生。
NavigationWindow.Navigating 導覽即將開始之前發生。
NavigationWindow.NavigationProgress 下載期間會定期發生,以提供導覽進度資訊。
NavigationWindow.NavigationStopped 在導覽期間呼叫 StopLoading 方法時發生。
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 當這個元素的 IsEnabled 屬性值變化時發生。
UIElement.IsHitTestVisibleChanged 這個元素的 IsHitTestVisible 相依屬性值變化時發生。
UIElement.IsKeyboardFocusedChanged 當這個元素的 IsKeyboardFocused 屬性值變化時發生。
UIElement.IsKeyboardFocusWithinChanged 當這個元素的 IsKeyboardFocusWithinChanged 屬性值變化時發生。
UIElement.IsMouseCapturedChanged 當這個元素的 IsMouseCaptured 屬性值變化時發生。
UIElement.IsMouseDirectlyOverChanged 當這個元素的 IsMouseDirectlyOver 屬性值變化時發生。
UIElement.IsStylusCapturedChanged 當這個元素的 IsStylusCaptured 屬性值變化時發生。
UIElement.IsStylusDirectlyOverChanged 當這個元素的 IsStylusDirectlyOver 屬性值變化時發生。
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 屬性變化時發生。

希望本我對你的學習有所幫助。

原文來自:https://www.cnblogs.com/lonelyxmas/p/9849965.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM