I am trying to make an add-in that allows a user to switch between multiple historical moments for a feature service. I also want to allow switching to the default view, sans historical moments. In the Pro UI, there is a radio button that allows you to return to the current time, and reflects that in the data source view of the contents panel. Unfortunately, I can't figure out how to replicate that functionality in my add-in.
I am able to switch versions with Map.ChangeVersion, but getting the default from version manager (GetDefaultVersion) and switching to that does nothing, and switching to DateTime.Now just places the feature service in another historical moment.
Any help is greatly appreciated!
