Description
The PointerEvents.None
field is a member of the PointerEvents
enumeration within the Sandbox.UI
namespace. It specifies that no pointer events should be accepted. This is equivalent to setting the CSS pointer-events
property to none
, effectively disabling any interaction with the UI element.
Usage
Use PointerEvents.None
when you want to ensure that a UI element does not respond to any pointer events, such as clicks, hovers, or any other mouse interactions. This can be useful for elements that are purely decorative or when you want to temporarily disable interaction without removing the element from the DOM.
Example
// Example of setting a UI element to not accept any pointer events
var myElement = new UIElement();
myElement.PointerEvents = PointerEvents.None;
// This will make the element non-interactive, ignoring all pointer events.