How can I show the "loading animation" using ArcGIS Pro SDK (C#)?

1383
2
01-17-2019 07:59 AM
CarstenAndersson
Occasional Contributor

Is it possible to show that loading animation  using the ArcGIS Pro SDK in C#?

I have create some custom controls, that perform some async calls like getting data from a service, and until the service has responded I want to show that little animation.

Is it possible?

Thanks in advance

Carsten

Tags (2)
0 Kudos
2 Replies
MaxMax2
Occasional Contributor II

There is a CircularAnimationControl in Pro SDK. Can you use it?

0 Kudos
CharlesMacleod
Esri Regular Contributor

Hi Max Max, yes you can. Add the control into your user control in the XAML. Bind its visibility to a property on your view model. Whenever you want to show the control, flip the property true or "Visible".

For an example look here:DockPaneBookmarkAdvanced - Bookmark.xaml   (There is also a WaitingCursorControl which acts identically but has a slightly different look is all)

0 Kudos