menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DragEventArgs

    Provides arguments for the OnDrag event, which is triggered while the dialog is being dragged.

    Inheritance
    System.Object
    DragEventArgs
    Namespace: Syncfusion.Blazor.Popups
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DragEventArgs : Object
    Remarks

    This event fires continuously as the user moves the dialog across the screen.

    Constructors

    DragEventArgs()

    Declaration
    public DragEventArgs()

    Properties

    Element

    Gets the DOM element of the dialog that is being dragged.

    Declaration
    public DOM Element { get; set; }
    Property Value
    Type Description
    DOM

    A DOM object representing the dialog element.

    Remarks

    This is the main element being moved.

    Event

    Gets the browser's mouse event arguments for the drag action.

    Declaration
    public MouseEventArgs Event { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.Web.MouseEventArgs

    A Microsoft.AspNetCore.Components.Web.MouseEventArgs object.

    Remarks

    This provides detailed information about the mouse state, such as its current position.

    Name

    Gets the name of the event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    The event name as a string, which is typically "OnDrag".

    Remarks

    Identifies the fired event.

    Target

    Gets the target element of the drag operation.

    Declaration
    public DOM Target { get; set; }
    Property Value
    Type Description
    DOM

    A DOM object representing the target.

    Remarks

    This is the element that the user initiated the drag on, which is usually the dialog's header.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved