ArcGISPortalViewer.Controls.LiveTile.OnItemsSourcePropertyChanged C# (CSharp) Method

OnItemsSourcePropertyChanged() private static method

private static OnItemsSourcePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d Windows.UI.Xaml.DependencyObject
e Windows.UI.Xaml.DependencyPropertyChangedEventArgs
return void
        private static void OnItemsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var ctrl = (d as LiveTile);
            if (e.NewValue is IEnumerable)
            {
                if (ctrl._currentElement != null && ctrl._nextElement != null)
                    ctrl.Start();
            }
            else if (ctrl._timer != null)
                ctrl._timer.Stop();
        }