コード例 #1
0
ファイル: InfoGrid.cs プロジェクト: DebugOfTheRoad/BigData
        void RemoveBorrowLabel()
        {
            if (!infoPanel.Children.Contains(borrowLabel))
            {
                return;
            }

            var outAnimation = new DoubleAnimation {
                From     = 1,
                To       = 0,
                Duration = new Duration(TimeSpan.FromSeconds(EASE_IN_TIME)),
            };

            outAnimation.Completed += delegate {
                infoPanel.Children.Remove(borrowLabel);
                infoPanel.Children.Remove(description);
                AddInputPanel();
            };

            description.ApplyAnimationClock(TextBlock.OpacityProperty, outAnimation.CreateClock());
            borrowLabel.ApplyAnimationClock(TextBlock.OpacityProperty, outAnimation.CreateClock());
        }