XamlEventIndex 枚举

定义

列出 XamlDirect 中所有受支持的事件的枚举。

本文档适用于Windows 应用 SDK中适用于 UWP 的 WinUI 2 (,请参阅Windows 应用 SDK命名空间)

public enum class XamlEventIndex
/// [Windows.Foundation.Metadata.Version(1)]
enum class XamlEventIndex
[Windows.Foundation.Metadata.Version(1)]
public enum XamlEventIndex
Public Enum XamlEventIndex
继承
XamlEventIndex
属性

字段

AppBar_Closed 112

AppBar 类型的 Closed 事件。

AppBar_Closing 111

AppBar 类型的 Closing 事件。

AppBar_Opened 110

AppBar 类型的 Opened 事件。

AppBar_Opening 109

AppBar 类型的 Opening 事件。

AutoSuggestBox_QuerySubmitted 115

AutoSuggestBox 类型的 QuerySubmitted 事件。

AutoSuggestBox_SuggestionChosen 113

AutoSuggestBox 类型的 SuggestionChosen 事件。

AutoSuggestBox_TextChanged 114

AutoSuggestBox 类型的 TextChanged 事件。

ButtonBase_Click 256

ButtonBase 类型的 Click 事件。

CalendarDatePicker_CalendarViewDayItemChanging 116

CalendarDatePicker 类型的 CalendarViewDayItemChanging 事件。

CalendarDatePicker_Closed 119

CalendarDatePicker 类型的 Closed 事件。

CalendarDatePicker_DateChanged 117

CalendarDatePicker 类型的 DateChanged 事件。

CalendarDatePicker_Opened 118

CalendarDatePicker 类型的 Opened 事件。

CalendarView_CalendarViewDayItemChanging 120

CalendarView 类型的 CalendarViewDayItemChanging 事件

CalendarView_SelectedDatesChanged 121

CalendarView 类型的 SelectedDatesChanged 事件。

CarouselPanel_HorizontalSnapPointsChanged 257

CarouselPanel 类型的 HorizontalSnapPointsChanged 事件。

CarouselPanel_VerticalSnapPointsChanged 258

CarouselPanel 类型的 VerticalSnapPointsChanged 事件。

ComboBox_DropDownClosed 122

ComboBox 类型的 DropDownClosed 事件。

ComboBox_DropDownOpened 123

ComboBox 类型的 DropDownOpened 事件。

CommandBar_DynamicOverflowItemsChanging 124

CommandBar 类型的 DynamicOverflowItemsChanging 事件。

ContentDialog_CloseButtonClick 131

ContentDialog 类型的 CloseButtonClick 事件。

ContentDialog_Closed 127

ContentDialog 类型的 Closed 事件。

ContentDialog_Closing 126

ContentDialog 类型的 Closing 事件。

ContentDialog_Opened 128

ContentDialog 类型的 Opened 事件。

ContentDialog_PrimaryButtonClick 129

ContentDialog 类型的 PrimaryButtonClick 事件。

ContentDialog_SecondaryButtonClick 130

ContentDialog 类型的 SecondaryButtonClick 事件。

Control_FocusDisengaged 133

Control 类型的 FocusDisengaged 事件。

Control_FocusEngaged 132

Control 类型的 FocusEngaged 事件。

DatePicker_DateChanged 135

DatePicker 类型的 DateChanged 事件。

DatePicker_SelectedDateChanged 322

DatePicker 类型的 SelectedDateChanged 事件。

Frame_Navigated 136

Frame 类型的 Navigated 事件。

Frame_Navigating 137

Frame 类型的 Navigation 事件。

Frame_NavigationFailed 138

Frame 类型的 NavigationFailed 事件。

Frame_NavigationStopped 139

Frame 类型的 NavigationStopped 事件。

FrameworkElement_DataContextChanged 16

FrameworkElement 类型的 DataContextChanged 事件。

FrameworkElement_LayoutUpdated 18

FrameworkElement 类型的 LayoutUpdated 事件。

FrameworkElement_SizeChanged 17

FrameworkElement 类型的 SizeChanged 事件。

Hub_SectionHeaderClick 143

中心类型的 SectionHeaderClick 事件。

Hub_SectionsInViewChanged 144

中心类型的 SectionsInViewChanged 事件。

ItemsPresenter_HorizontalSnapPointsChanged 148

ItemsPresenter 类型的 HorizontalSnapPointsChanged 事件。

ItemsPresenter_VerticalSnapPointsChanged 149

ItemsPresenter 类型的 VerticalSnapPointsChanged 事件。

ListViewBase_ChoosingGroupHeaderContainer 155

ListViewBase 类型的 ChoosingGroupHeaderContainer 事件。

ListViewBase_ChoosingItemContainer 154

ListViewBase 类型的 ChoosingItemContainer 事件。

ListViewBase_ContainerContentChanging 153

ListViewBase 类型的 ContainerContentChanging 事件。

ListViewBase_DragItemsCompleted 152

ListViewBase 类型的 DragItemsCompleted 事件。

ListViewBase_DragItemsStarting 151

ListViewBase 类型的 DragItemsStarting 事件。

ListViewBase_ItemClick 150

ListViewBase 类型的 ItemClick 事件。

MediaTransportControls_ThumbnailRequested 167

MediaTransportControls 类型的 ThumbnailRequested 事件。

MenuFlyoutItem_Click 168

MenuFlyoutItem 类型的 Click 事件。

OrientedVirtualizingPanel_HorizontalSnapPointsChanged 263

OrientedVirtualizingPanel 类型的 HorizontalSnapPointsChanged 事件。

OrientedVirtualizingPanel_VerticalSnapPointsChanged 264

OrientedVirtualizingPanel 类型的 VerticalSnapPointsChanged 事件。

RangeBase_ValueChanged 267

RangeBase 类型的 ValueChanged 事件。

RichEditBox_TextChanging 177

RichEditBox 类型的 TextChanging 事件。

ScrollBar_Scroll 268

ScrollBar 类型的 Scroll 事件。

ScrollViewer_AnchorRequested 291

ScrollViewer 类型的 AnchorRequested 事件。

ScrollViewer_DirectManipulationCompleted 195

ScrollViewer 类型的 DirectManipulationCompleted 事件。

ScrollViewer_DirectManipulationStarted 194

ScrollViewer 类型的 DirectManipulationStarted 事件。

ScrollViewer_ViewChanged 193

ScrollViewer 类型的 ViewChanged 事件。

ScrollViewer_ViewChanging 192

ScrollViewer 类型的 ViewChanging 事件。

SearchBox_PrepareForFocusOnKeyboardInput 200

SearchBox 类型的 PrepareForFocusOnKeyboardInput 事件。

SearchBox_QueryChanged 196

SearchBox 类型的 QueryChanged 事件。

SearchBox_QuerySubmitted 198

SearchBox 类型的 QuerySubmitted 事件。

SearchBox_ResultSuggestionChosen 199

SearchBox 类型的 ResultSuggestionChosen 事件。

SearchBox_SuggestionsRequested 197

SearchBox 类型的 SuggestionsRequested 事件。

Selector_SelectionChanged 269

选择器类型的 SelectionChanged 事件。

SemanticZoom_ViewChangeCompleted 202

SemanticZoom 类型的 ViewChangeCompleted 事件。

SemanticZoom_ViewChangeStarted 201

SemanticZoom 类型的 ViewChangeStarted 事件。

SettingsFlyout_BackClick 203

SettingsFlyout 类型的 BackClick 事件。

StackPanel_HorizontalSnapPointsChanged 208

StackPanel 类型的 HorizontalSnapPointsChanged 事件。

StackPanel_VerticalSnapPointsChanged 209

StackPanel 类型的 VerticalSnapPointsChanged 事件。

Thumb_DragCompleted 272

Thumb 类型的 DragCompleted 事件。

Thumb_DragDelta 271

Thumb 类型的 DragDelta 事件。

Thumb_DragStarted 270

Thumb 类型的 DragStarted 事件。

TimePicker_SelectedTimeChanged 323

TimePicker 类型的 SelectedTimeChanged 事件。

TimePicker_TimeChanged 227

TimePicker 类型的 TimeChanged 事件。

ToggleButton_Checked 273

ToggleButton 类型的 Checked 事件。

ToggleButton_Indeterminate 275

ToggleButton 类型的不确定事件。

ToggleButton_Unchecked 274

ToggleButton 类型的 Unchecked 事件。

ToggleSwitch_Toggled 228

ToggleSwitch 类型的 Toggled 事件。

ToolTip_Closed 229

工具提示类型的 Closed 事件。

ToolTip_Opened 230

工具提示类型的 Opened 事件。

UIElement_BringIntoViewRequested 66

UIElement 类型的 BringIntoViewRequested 事件。

UIElement_CharacterReceived 28

UIElement 类型的 CharacterReceived 事件。

UIElement_ContextCanceled 50

UIElement 类型的 ContextCanceled 事件。

UIElement_ContextRequested 49

UIElement 类型的 ContextRequested 事件。

UIElement_DoubleTapped 47

UIElement 类型的 DoubleTapped 事件。

UIElement_DragEnter 29

UIElement 类型的 DragEnter 事件。

UIElement_DragLeave 30

UIElement 类型的 DragLeave 事件。

UIElement_DragOver 31

UIElement 类型的 DragOver 事件。

UIElement_DragStarting 26

UIElement 类型的 DragStarting 事件。

UIElement_Drop 32

UIElement 类型的 Drop 事件。

UIElement_DropCompleted 27

UIElement 类型的 DropCompleted 事件。

UIElement_GettingFocus 61

UIElement 类型的 GettingFocus 事件。

UIElement_GotFocus 24

UIElement 类型的 GotFocus 事件。

UIElement_Holding 48

UIElement 类型的 Holding 事件。

UIElement_KeyDown 23

UIElement 类型的 KeyDown 事件。

UIElement_KeyUp 22

UIElement 类型的 KeyUp 事件。

UIElement_LosingFocus 62

UIElement 类型的 LosingFocus 事件。

UIElement_LostFocus 25

UIElement 类型的 LostFocus 事件。

UIElement_ManipulationCompleted 56

UIElement 类型的 ManipulationCompleted 事件。

UIElement_ManipulationDelta 55

UIElement 类型的 ManipulationDelta 事件。

UIElement_ManipulationInertiaStarting 53

UIElement 类型的 ManipulationInertiaStarting 事件。

UIElement_ManipulationStarted 54

UIElement 类型的 ManipulationStarted 事件。

UIElement_ManipulationStarting 52

UIElement 类型的 ManipulationStarting 事件。

UIElement_NoFocusCandidateFound 63

UIElement 类型的 NoFocusCandidateFound 事件。

UIElement_PointerCanceled 44

UIElement 类型的 PointerCanceled 事件。

UIElement_PointerCaptureLost 43

UIElement 类型的 PointerCaptureLost 事件。

UIElement_PointerEntered 41

UIElement 类型的 PointerEntered 事件。

UIElement_PointerExited 42

UIElement 类型的 PointerExited 事件。

UIElement_PointerMoved 39

UIElement 类型的 PointerMoved 事件。

UIElement_PointerPressed 38

UIElement 类型的 PointerPressed 事件。

UIElement_PointerReleased 40

UIElement 类型的 PointerReleased 事件。

UIElement_PointerWheelChanged 45

UIElement 类型的 PointerWheelChanged 事件。

UIElement_PreviewKeyDown 64

UIElement 类型的 PreviewKeyDown 事件。

UIElement_PreviewKeyUp 65

UIElement 类型的 PreviewKeyUp 事件。

UIElement_ProcessKeyboardAccelerators 60

UIElement 类型的 ProcessKeyboardAccelerators 事件。

UIElement_RightTapped 51

UIElement 类型的 RightTapped 事件。

UIElement_Tapped 46

UIElement 类型的 Tapped 事件。

VirtualizingStackPanel_CleanUpVirtualizedItemEvent 231

VirtualizingStackPanel 类型的 CleanUpVirtualizedItemEvent 事件。

WebView_ContainsFullScreenElementChanged 247

WebView 类型的 ContainsFullScreenElementChanged 事件。

WebView_ContentLoading 237

WebView 类型的 ContentLoading 事件。

WebView_DOMContentLoaded 238

WebView 类型的 DOMContentLoaded 事件。

WebView_FrameContentLoading 241

WebView 类型的 FrameContentLoading 事件。

WebView_FrameDOMContentLoaded 242

WebView 类型的 FrameDOMContentLoaded 事件。

WebView_FrameNavigationCompleted 243

WebView 类型的 FrameNavigationCompleted 事件。

WebView_FrameNavigationStarting 240

WebView 类型的 FrameNavigationStarting 事件。

WebView_LoadCompleted 233

WebView 类型的 LoadCompleted 事件。

WebView_LongRunningScriptDetected 244

WebView 类型的 LongRunningScriptDetected 事件。

WebView_NavigationCompleted 239

WebView 类型的 NavigationCompleted 事件。

WebView_NavigationFailed 235

WebView 类型的 NavigationFailed 事件。

WebView_NavigationStarting 236

WebView 类型的 NavigationStarting 事件。

WebView_NewWindowRequested 249

WebView 类型的 NewWindowRequested 事件。

WebView_PermissionRequested 250

WebView 类型的 PermissionRequested 事件。

WebView_ScriptNotify 234

WebView 类型的 ScriptNotify 事件。

WebView_SeparateProcessLost 232

WebView 类型的 SeparateProcessLost 事件。

WebView_UnsafeContentWarningDisplaying 245

WebView 类型的 UnsafeContentWarningDisplaying 事件。

WebView_UnsupportedUriSchemeIdentified 248

WebView 类型的 UnsupportedUriSchemeIdentified 事件。

WebView_UnviewableContentIdentified 246

WebView 类型的 UnviewableContentIdentified 事件。

WebView_WebResourceRequested 283

WebView 类型的 WebResourceRequested 事件

示例

提示

WinUI 3 库和 WinUI 2 库应用包括大多数 WinUI 3 和 WinUI 2 控件、特性和功能的交互式示例。

如果已安装,请单击以下链接将其打开:WinUI 3 库WinUI 2 库

如果未安装,可以从 Microsoft Store 下载 WinUI 3 库WinUI 2 库

还可以从 GitHub 获取这两种应用的源代码(对 WinUI 3 使用 main 分支,对 WinUI 2 使用 winui2 分支)。

适用于

另请参阅