コード例 #1
0
        private void Alb_ItemClicked(object sender, EventArgs e)
        {
            Album alb = (Album)sender;

            CurrentItems.Clear();
            TrackView.Items.Clear();
            for (int i = 0; alb.Data.Tracks.Length > i; i++)
            {
                LAPP.IO.FileItem fi = CreateItem(alb.Data, i);
                TrackView.Items.Add(fi.ListItem);
                CurrentItems.Add(fi);
            }

            ClearUC.Utils.AnimationHelper.Visible va = new ClearUC.Utils.AnimationHelper.Visible();
            int ind = Children.IndexOf(alb);

            if (ind == VisibleIndex)
            {
                VisibleIndex = -1;
                Current      = null;
                va.Animate(Config.Current.iValue[Enums.iValue.AlbumVisibleAnimation], TrackView, Visibility.Hidden);
                EditLabel.Visibility = Visibility.Hidden;
            }
            else
            {
                VisibleIndex = ind;
                Current      = alb.Data;
                va.Animate(Config.Current.iValue[Enums.iValue.AlbumVisibleAnimation], TrackView, Visibility.Visible);
                EditLabel.Visibility = Visibility.Visible;
            }
        }
コード例 #2
0
        private void Rectangle_MouseLeave(object sender, MouseEventArgs e)
        {
            if (string.IsNullOrEmpty(Label))
            {
                LabelParent.Visibility = Visibility.Hidden;
                return;
            }

            ClearUC.Utils.AnimationHelper.Visible va = new ClearUC.Utils.AnimationHelper.Visible();
            va.Animate(300, LabelParent, Visibility.Hidden);
        }