Class SkinActionEventArgs
- Namespace
- VisioForge.Core.UI.Skins
- Assembly
- VisioForge.Core.dll
Provides event data for skin-related UI actions, allowing event handlers to identify the UI element involved and control event propagation.
public class SkinActionEventArgs : EventArgsInheritance
Inherited Members
Remarks
This event args class is used when users interact with skinned UI elements such as buttons and controls. Event handlers can use the VisioForge.Core.UI.Skins.SkinActionEventArgs.Type property to determine which element was clicked and set VisioForge.Core.UI.Skins.SkinActionEventArgs.HandleAndIgnore to prevent default behavior and implement custom actions. This is particularly useful for overriding standard control behavior or implementing custom command handling.
Constructors
SkinActionEventArgs(SkinElementType)
Initializes a new instance of the VisioForge.Core.UI.Skins.SkinActionEventArgs class with the specified element type.
public SkinActionEventArgs(SkinElementType elementType)Parameters
elementTypeSkinElementType-
The type of UI element that triggered the action.
Properties
HandleAndIgnore
Gets or sets a value indicating whether the action has been handled externally and should be ignored by the control panel's default handling.
public bool HandleAndIgnore { get; set; }Property Value
Remarks
Set this property to true in event handlers when you want to override the default behavior
and prevent the control from executing its standard action for the element.
This allows for custom command implementations or conditional action execution.
By default, this property is false, allowing standard control behavior to proceed.
Type
Gets the type of UI element that triggered the skin action.
public SkinElementType Type { get; }Property Value
Remarks
Use this property to identify which button or control was clicked by the user, enabling appropriate response such as play/pause, volume adjustment, or record start/stop.