menu

Blazor

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

    Show / Hide Table of Contents

    Class GallerySelectEventArgs

    Provides information about the Selecting event callback.

    Inheritance
    System.Object
    GallerySelectEventArgs
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GallerySelectEventArgs : Object
    Remarks

    This event is triggered before a gallery item is selected, allowing customization or cancellation of the selection process.

    Constructors

    GallerySelectEventArgs()

    Declaration
    public GallerySelectEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the selection action should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the selection should be canceled; otherwise, false. The default value is false.

    Remarks

    By setting this property to true, you can cancel the selection process, which is useful when validation or pre-selection conditions are not met.

    CurrentItem

    Gets the currently selected gallery item.

    Declaration
    public GalleryItem CurrentItem { get; }
    Property Value
    Type Description
    GalleryItem

    An instance of GalleryItem representing the currently selected gallery item.

    Remarks

    Use this property to access the data of the item being selected, enabling you to make decisions based on its attributes during the selection event.

    IsInteracted

    Gets or sets a value indicating whether the event is triggered via user interaction or programmatically.

    Declaration
    public bool IsInteracted { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if triggered by user interaction; otherwise, false. The default value is false.

    Remarks

    Helps to determine the origin of the gallery selection, useful for distinguishing between user interaction and code-driven selection.

    PreviousItem

    Gets the previously selected gallery item.

    Declaration
    public GalleryItem PreviousItem { get; }
    Property Value
    Type Description
    GalleryItem

    An instance of GalleryItem representing the previously selected gallery item.

    Remarks

    This property allows tracking of item transitions by providing details of the item that is previously selected before the current action.

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