コード例 #1
0
        private void PB_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Duration duration = new Duration(TimeSpan.FromSeconds(1));

            aMedia.Position += TimeSpan.FromSeconds(10);
            DoubleAnimation d = new DoubleAnimation(PB.Value + 10, duration);

            PB.BeginAnimation(ProgressBar.ValueProperty, d);
        }