All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

LoadingIndicatorButtonInfo Class

Represents a loading indicator displayed within the ButtonEdit and its descendants.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

Declaration

public class LoadingIndicatorButtonInfo :
    ButtonInfoBase
Public Class LoadingIndicatorButtonInfo
    Inherits ButtonInfoBase

Remarks

The LoadingIndicatorButtonInfo class implements the functionality of a loading indicator displayed within the button editors (e.g., ButtonEdit, DateEdit, etc.).

How to Add the Loading Indicator

Add a LoadingIndicatorButtonInfo class instance to the editor's ButtonEdit.Buttons (ButtonEditSettings.Buttons for the in-place ButtonEdit) collection.

To display and hide the loading indicator, use its Visibility property.

Example

The code sample below illustrates how to show the LoadingIndicatorButtonInfo during the long running operation and hide the loading indicator when the operation is complete.

<dxe:ButtonEdit
    AllowDefaultButton="False">
    <dxe:ButtonEdit.Buttons>
        <dxe:LoadingIndicatorButtonInfo Visibility="Collapsed" x:Name="loadingIndicator"/>
        <dxe:ButtonInfo GlyphKind="Refresh" Click="ButtonInfo_Click"/>
    </dxe:ButtonEdit.Buttons>
</dxe:ButtonEdit>
private async void ButtonInfo_Click(object sender, RoutedEventArgs e) {
    loadingIndicator.Visibility = Visibility.Visible;
    // Perform a long running operation instead of Task.Delay
    await Task.Delay(2000);
    loadingIndicator.Visibility = Visibility.Collapsed;
    e.Handled = true;
}

The animation below illustrates the result:

loading indicator button info example

See Also