private static OnItemsSourcePropertyChanged ( |
||
d | ||
e | ||
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();
}