private void FadeAway(bool ignoreFaded = false) { if (_faded && !ignoreFaded) { return; } _faded = true; var items = SongTimeline.FindChildren <TimelineItem>(); for (var i = 0; i < items.Count(); i++) { if (!_faded) { return; } if (i != SongTimeline.CurrentItemIndex) { items.ElementAt(i).Fade(0).Start(); } } var item = items.ElementAt(SongTimeline.CurrentItemIndex); item.Fade(1).Scale(1.2f, 1.2f, (float)item.DesiredSize.Width / 2, (float)item.DesiredSize.Height / 2).Start(); }
private void FadeIn() { if (!_faded) { return; } _faded = false; var items = SongTimeline.FindChildren <TimelineItem>(); foreach (var item in items) { if (_faded) { return; } item.Fade(1).Scale(1, 1, (float)item.DesiredSize.Width / 2, (float)item.DesiredSize.Height / 2).Start(); } }