Ticket T852466
Visible to All Users

Loading Indicator in button

created 5 years ago

Hi,

Is there any C# example to demonstrate how to use loading indicator inside a button while data is being fetched in a WPF project?

I am looking for similar example provided in the below link
https://js.devexpress.com/Demos/WidgetsGallery/Demo/LoadIndicator/Overview/Mvc/Light/

Thanks,
Shravan

Answers approved by DevExpress Support

created 5 years ago

Hi Shravan,

I suggest you take a look at LoadingDecorator and WaitIndicator. In our documentation, we describe their features and provide examples of their use.
Please see this article for more information: Windows and Utility Controls

Best regards,
Boris

    Comments (2)
    SA SA
    Shravan Ananda 5 years ago

      Hi Boris,

      I have used LoadingDecorator in my project, but it will block entire grid. In my case i want to display this just inside the button, like the one in attached pic . Could you please suggest me how can we achieve this?

      Thanks,
      Shravan

      Boris (DevExpress Support) 5 years ago

        Hi Shravan,

        If I understand you correctly, the issue is that the decorator locks the screen at runtime. If so, you can set the OwnerLock property to none to avoid it.

        See also: SplashScreenLock.

        As for your last point, I attached a sample where I showed how you can use LoadingDecorator inside a button. If you have any further questions, please feel free to contact me.

        Best regards,
        Boris

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.