Lotaris and AdRotator

Nov 15, 2013 at 5:23 PM
Has anyone successfully integrated both Lotaris and an AdRotator, I am getting an unhandled exception thrown every time Lotaris returns control to the app.

Every time my license information is updated I call:
            await App.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
                if (CurrentApp.LicenseInformation.IsActive)
                    AdRotator.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
                else AdRotator.Visibility = Windows.UI.Xaml.Visibility.Visible;

                AdRotator.IsEnabled = AdRotator.Visibility == Windows.UI.Xaml.Visibility.Visible;
The rotator throws an unhandled exception after control is returned to my app. This is my stack trace:
System.ArgumentException: The parameter is incorrect. target
   at Windows.UI.Xaml.Media.Animation.Storyboard.SetTarget(Timeline timeline, DependencyObject target)
   at AdRotatorWin8.AdRotatorControl.InitialiseSlidingAnimations()
   at AdRotatorWin8.AdRotatorControl.AdRotatorControl_Loaded(Object sender, RoutedEventArgs e)
Is there some fix I can do so my app won't crash consistently? I don't want to have to drop the AdRotator because of this.
Nov 18, 2013 at 12:17 PM
You should be using the "isEnabled" property rather than "Visibility", since the aim is to disable AdRotator and not just hide it.
But agreed, changing the visibility shouldn't crash it so we will look into it.