menu

Blazor

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

    Show / Hide Table of Contents

    Class GallerySelectedEventArgs

    Provides information about the Selected event callback.

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

    This event occurs when a gallery item has been selected, allowing for further handling of the selection.

    Constructors

    GallerySelectedEventArgs()

    Declaration
    public GallerySelectedEventArgs()

    Properties

    CurrentItem

    Gets or sets 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

    This property provides direct access to the data of the newly selected item, useful for updating the UI or other dependent logic based on the current selection.

    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

    This property helps differentiate between user-driven and programmatically initiated events, allowing for context-specific handling.

    PreviousItem

    Gets or sets 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

    Use this property to identify which item was selected before the current selection change, useful for scenarios where state tracking is needed between selections.

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