UIEvent Class
https://w3c.github.io/uievents/#uievent
public class UIEvent : Event- Inheritance
EventUIEvent
Constructors
| Name | Description |
|---|---|
| UIEvent(string, UIEventInit?) | Creates a UI event of the given type with the given initialization dictionary. |
UIEvent(string, UIEventInit?)
UIEvents.csCreates a UI event of the given type with the given initialization dictionary.
public UIEvent(string type, UIEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| Detail | Gets the detail of the event, whose meaning depends on the event type (for example the click count). |
| PseudoTarget | Gets the pseudo-element that is the target of the interaction (https://github.com/w3c/uievents/pull/413): null when the target is not a pseudo-element, outside of the dispatch, and for the listeners of a shadow tree the originating element is retargeted out of (the pseudo-element is in the tree of its originating element). |
| View | Gets the window in which the event occurred, or null. |
| Which | Gets the legacy numeric code of the key or button of the event. |
Detail
UIEvents.csGets the detail of the event, whose meaning depends on the event type (for example the click count).
public int Detail { get; }PseudoTarget
UIEvents.cs- Experimental (WEBPLATEXP0008)
Gets the pseudo-element that is the target of the interaction (https://github.com/w3c/uievents/pull/413): null when the target is not a pseudo-element, outside of the dispatch, and for the listeners of a shadow tree the originating element is retargeted out of (the pseudo-element is in the tree of its originating element).
[Experimental("WEBPLATEXP0008", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public CssPseudoElement? PseudoTarget { get; }View
UIEvents.csGets the window in which the event occurred, or null.
public EventTarget? View { get; }Which
UIEvents.csGets the legacy numeric code of the key or button of the event.
public uint Which { get; }Methods
| Name | Description |
|---|---|
| InitUIEvent(string, bool, bool, EventTarget?, int) | https://w3c.github.io/uievents/#dom-uievent-inituievent |