Share via


XamlEventIndex Enum

Definition

Enum that lists all the supported events in XamlDirect.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public enum class XamlEventIndex
/// [Windows.Foundation.Metadata.Version(1)]
enum class XamlEventIndex
[Windows.Foundation.Metadata.Version(1)]
public enum XamlEventIndex
Public Enum XamlEventIndex
Inheritance
XamlEventIndex
Attributes

Fields

Name Value Description
FrameworkElement_DataContextChanged 16

The DataContextChanged event for the FrameworkElement type.

FrameworkElement_SizeChanged 17

The SizeChanged event for the FrameworkElement type.

FrameworkElement_LayoutUpdated 18

The LayoutUpdated event for the FrameworkElement type.

UIElement_KeyUp 22

The KeyUp event for the UIElement type.

UIElement_KeyDown 23

The KeyDown event for the UIElement type.

UIElement_GotFocus 24

The GotFocus event for the UIElement type.

UIElement_LostFocus 25

The LostFocus event for the UIElement type.

UIElement_DragStarting 26

The DragStarting event for the UIElement type.

UIElement_DropCompleted 27

The DropCompleted event for the UIElement type.

UIElement_CharacterReceived 28

The CharacterReceived event for the UIElement type.

UIElement_DragEnter 29

The DragEnter event for the UIElement type.

UIElement_DragLeave 30

The DragLeave event for the UIElement type.

UIElement_DragOver 31

The DragOver event for the UIElement type.

UIElement_Drop 32

The Drop event for the UIElement type.

UIElement_PointerPressed 38

The PointerPressed event for the UIElement type.

UIElement_PointerMoved 39

The PointerMoved event for the UIElement type.

UIElement_PointerReleased 40

The PointerReleased event for the UIElement type.

UIElement_PointerEntered 41

The PointerEntered event for the UIElement type.

UIElement_PointerExited 42

The PointerExited event for the UIElement type.

UIElement_PointerCaptureLost 43

The PointerCaptureLost event for the UIElement type.

UIElement_PointerCanceled 44

The PointerCanceled event for the UIElement type.

UIElement_PointerWheelChanged 45

The PointerWheelChanged event for the UIElement type.

UIElement_Tapped 46

The Tapped event for the UIElement type.

UIElement_DoubleTapped 47

The DoubleTapped event for the UIElement type.

UIElement_Holding 48

The Holding event for the UIElement type.

UIElement_ContextRequested 49

The ContextRequested event for the UIElement type.

UIElement_ContextCanceled 50

The ContextCanceled event for the UIElement type.

UIElement_RightTapped 51

The RightTapped event for the UIElement type.

UIElement_ManipulationStarting 52

The ManipulationStarting event for the UIElement type.

UIElement_ManipulationInertiaStarting 53

The ManipulationInertiaStarting event for the UIElement type.

UIElement_ManipulationStarted 54

The ManipulationStarted event for the UIElement type.

UIElement_ManipulationDelta 55

The ManipulationDelta event for the UIElement type.

UIElement_ManipulationCompleted 56

The ManipulationCompleted event for the UIElement type.

UIElement_ProcessKeyboardAccelerators 60

The ProcessKeyboardAccelerators event for the UIElement type.

UIElement_GettingFocus 61

The GettingFocus event for the UIElement type.

UIElement_LosingFocus 62

The LosingFocus event for the UIElement type.

UIElement_NoFocusCandidateFound 63

The NoFocusCandidateFound event for the UIElement type.

UIElement_PreviewKeyDown 64

The PreviewKeyDown event for the UIElement type.

UIElement_PreviewKeyUp 65

The PreviewKeyUp event for the UIElement type.

UIElement_BringIntoViewRequested 66

The BringIntoViewRequested event for the UIElement type.

AppBar_Opening 109

The Opening event for the AppBar type.

AppBar_Opened 110

The Opened event for the AppBar type.

AppBar_Closing 111

The Closing event for the AppBar type.

AppBar_Closed 112

The Closed event for the AppBar type.

AutoSuggestBox_SuggestionChosen 113

The SuggestionChosen event for the AutoSuggestBox type.

AutoSuggestBox_TextChanged 114

The TextChanged event for the AutoSuggestBox type.

AutoSuggestBox_QuerySubmitted 115

The QuerySubmitted event for the AutoSuggestBox type.

CalendarDatePicker_CalendarViewDayItemChanging 116

The CalendarViewDayItemChanging event for the CalendarDatePicker type.

CalendarDatePicker_DateChanged 117

The DateChanged event for the CalendarDatePicker type.

CalendarDatePicker_Opened 118

The Opened event for the CalendarDatePicker type.

CalendarDatePicker_Closed 119

The Closed event for the CalendarDatePicker type.

CalendarView_CalendarViewDayItemChanging 120

The CalendarViewDayItemChanging event for the CalendarView type.

CalendarView_SelectedDatesChanged 121

The SelectedDatesChanged event for the CalendarView type.

ComboBox_DropDownClosed 122

The DropDownClosed event for the ComboBox type.

ComboBox_DropDownOpened 123

The DropDownOpened event for the ComboBox type.

CommandBar_DynamicOverflowItemsChanging 124

The DynamicOverflowItemsChanging event for the CommandBar type.

ContentDialog_Closing 126

The Closing event for the ContentDialog type.

ContentDialog_Closed 127

The Closed event for the ContentDialog type.

ContentDialog_Opened 128

The Opened event for the ContentDialog type.

ContentDialog_PrimaryButtonClick 129

The PrimaryButtonClick event for the ContentDialog type.

ContentDialog_SecondaryButtonClick 130

The SecondaryButtonClick event for the ContentDialog type.

ContentDialog_CloseButtonClick 131

The CloseButtonClick event for the ContentDialog type.

Control_FocusEngaged 132

The FocusEngaged event for the Control type.

Control_FocusDisengaged 133

The FocusDisengaged event for the Control type.

DatePicker_DateChanged 135

The DateChanged event for the DatePicker type.

Frame_Navigated 136

The Navigated event for the Frame type.

Frame_Navigating 137

The Navigating event for the Frame type.

Frame_NavigationFailed 138

The NavigationFailed event for the Frame type.

Frame_NavigationStopped 139

The NavigationStopped event for the Frame type.

Hub_SectionHeaderClick 143

The SectionHeaderClick event for the Hub type.

Hub_SectionsInViewChanged 144

The SectionsInViewChanged event for the Hub type.

ItemsPresenter_HorizontalSnapPointsChanged 148

The HorizontalSnapPointsChanged event for the ItemsPresenter type.

ItemsPresenter_VerticalSnapPointsChanged 149

The VerticalSnapPointsChanged event for the ItemsPresenter type.

ListViewBase_ItemClick 150

The ItemClick event for the ListViewBase type.

ListViewBase_DragItemsStarting 151

The DragItemsStarting event for the ListViewBase type.

ListViewBase_DragItemsCompleted 152

The DragItemsCompleted event for the ListViewBase type.

ListViewBase_ContainerContentChanging 153

The ContainerContentChanging event for the ListViewBase type.

ListViewBase_ChoosingItemContainer 154

The ChoosingItemContainer event for the ListViewBase type.

ListViewBase_ChoosingGroupHeaderContainer 155

The ChoosingGroupHeaderContainer event for the ListViewBase type.

MediaTransportControls_ThumbnailRequested 167

The ThumbnailRequested event for the MediaTransportControls type.

MenuFlyoutItem_Click 168

The Click event for the MenuFlyoutItem type.

RichEditBox_TextChanging 177

The TextChanging event for the RichEditBox type.

ScrollViewer_ViewChanging 192

The ViewChanging event for the ScrollViewer type.

ScrollViewer_ViewChanged 193

The ViewChanged event for the ScrollViewer type.

ScrollViewer_DirectManipulationStarted 194

The DirectManipulationStarted event for the ScrollViewer type.

ScrollViewer_DirectManipulationCompleted 195

The DirectManipulationCompleted event for the ScrollViewer type.

SearchBox_QueryChanged 196

The QueryChanged event for the SearchBox type.

SearchBox_SuggestionsRequested 197

The SuggestionsRequested event for the SearchBox type.

SearchBox_QuerySubmitted 198

The QuerySubmitted event for the SearchBox type.

SearchBox_ResultSuggestionChosen 199

The ResultSuggestionChosen event for the SearchBox type.

SearchBox_PrepareForFocusOnKeyboardInput 200

The PrepareForFocusOnKeyboardInput event for the SearchBox type.

SemanticZoom_ViewChangeStarted 201

The ViewChangeStarted event for the SemanticZoom type.

SemanticZoom_ViewChangeCompleted 202

The ViewChangeCompleted event for the SemanticZoom type.

SettingsFlyout_BackClick 203

The BackClick event for the SettingsFlyout type.

StackPanel_HorizontalSnapPointsChanged 208

The HorizontalSnapPointsChanged event for the StackPanel type.

StackPanel_VerticalSnapPointsChanged 209

The VerticalSnapPointsChanged event for the StackPanel type.

TimePicker_TimeChanged 227

The TimeChanged event for the TimePicker type.

ToggleSwitch_Toggled 228

The Toggled event for the ToggleSwitch type.

ToolTip_Closed 229

The Closed event for the ToolTip type.

ToolTip_Opened 230

The Opened event for the ToolTip type.

VirtualizingStackPanel_CleanUpVirtualizedItemEvent 231

The CleanUpVirtualizedItemEvent event for the VirtualizingStackPanel type.

WebView_SeparateProcessLost 232

The SeparateProcessLost event for the WebView type.

WebView_LoadCompleted 233

The LoadCompleted event for the WebView type.

WebView_ScriptNotify 234

The ScriptNotify event for the WebView type.

WebView_NavigationFailed 235

The NavigationFailed event for the WebView type.

WebView_NavigationStarting 236

The NavigationStarting event for the WebView type.

WebView_ContentLoading 237

The ContentLoading event for the WebView type.

WebView_DOMContentLoaded 238

The DOMContentLoaded event for the WebView type.

WebView_NavigationCompleted 239

The NavigationCompleted event for the WebView type.

WebView_FrameNavigationStarting 240

The FrameNavigationStarting event for the WebView type.

WebView_FrameContentLoading 241

The FrameContentLoading event for the WebView type.

WebView_FrameDOMContentLoaded 242

The FrameDOMContentLoaded event for the WebView type.

WebView_FrameNavigationCompleted 243

The FrameNavigationCompleted event for the WebView type.

WebView_LongRunningScriptDetected 244

The LongRunningScriptDetected event for the WebView type.

WebView_UnsafeContentWarningDisplaying 245

The UnsafeContentWarningDisplaying event for the WebView type.

WebView_UnviewableContentIdentified 246

The UnviewableContentIdentified event for the WebView type.

WebView_ContainsFullScreenElementChanged 247

The ContainsFullScreenElementChanged event for the WebView type.

WebView_UnsupportedUriSchemeIdentified 248

The UnsupportedUriSchemeIdentified event for the WebView type.

WebView_NewWindowRequested 249

The NewWindowRequested event for the WebView type.

WebView_PermissionRequested 250

The PermissionRequested event for the WebView type.

ButtonBase_Click 256

The Click event for the ButtonBase type.

CarouselPanel_HorizontalSnapPointsChanged 257

The HorizontalSnapPointsChanged event for the CarouselPanel type.

CarouselPanel_VerticalSnapPointsChanged 258

The VerticalSnapPointsChanged event for the CarouselPanel type.

OrientedVirtualizingPanel_HorizontalSnapPointsChanged 263

The HorizontalSnapPointsChanged event for the OrientedVirtualizingPanel type.

OrientedVirtualizingPanel_VerticalSnapPointsChanged 264

The VerticalSnapPointsChanged event for the OrientedVirtualizingPanel type.

RangeBase_ValueChanged 267

The ValueChanged event for the RangeBase type.

ScrollBar_Scroll 268

The Scroll event for the ScrollBar type.

Selector_SelectionChanged 269

The SelectionChanged event for the Selector type.

Thumb_DragStarted 270

The DragStarted event for the Thumb type.

Thumb_DragDelta 271

The DragDelta event for the Thumb type.

Thumb_DragCompleted 272

The DragCompleted event for the Thumb type.

ToggleButton_Checked 273

The Checked event for the ToggleButton type.

ToggleButton_Unchecked 274

The Unchecked event for the ToggleButton type.

ToggleButton_Indeterminate 275

The Indeterminate event for the ToggleButton type.

WebView_WebResourceRequested 283

The WebResourceRequested event for the WebView type.

ScrollViewer_AnchorRequested 291

The AnchorRequested event for the ScrollViewer type.

DatePicker_SelectedDateChanged 322

The SelectedDateChanged event for the DatePicker type.

TimePicker_SelectedTimeChanged 323

The SelectedTimeChanged event for the TimePicker type.

Examples

Tip

The WinUI 3 Gallery and WinUI 2 Gallery apps include interactive examples of most WinUI 3 and WinUI 2 controls, features, and functionality.

If installed already, open them by clicking the following links: WinUI 3 Gallery or WinUI 2 Gallery.

If they are not installed, you can download the WinUI 3 Gallery and the WinUI 2 Gallery from the Microsoft Store.

You can also get the source code for both from GitHub (use the main branch for WinUI 3 and the winui2 branch for WinUI 2).

Applies to

See also