Back to Devexpress

AccordionItemStateChangeEventArgs.CausedByAPI Property

blazor-devexpress-dot-blazor-dot-accordionitemstatechangeeventargs-e145b86b.md

latest1.4 KB
Original Source

AccordionItemStateChangeEventArgs.CausedByAPI Property

OBSOLETE

This property is obsolete now. Use the Reason property instead.

Specifies whether an event was triggered by user action or from code.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Browsable(false)]
[Obsolete("This property is obsolete now. Use the Reason property instead.")]
public bool CausedByAPI { get; }

Property Value

TypeDescription
Boolean

true if an event was triggered from code; otherwise, false.

|

Remarks

The following example accesss the CausedByAPI property value:

razor
<DxAccordion AfterCollapse=@AfterCollapse>
    @* ... *@
</DxAccordion>

@code {
    void AfterCollapse(AccordionItemStateChangeEventArgs args) {
        bool IsUser = args.CausedByAPI;
    }
}

See Also

AccordionItemStateChangeEventArgs Class

AccordionItemStateChangeEventArgs Members

DevExpress.Blazor Namespace