Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPFanimation issue

$
0
0
 

 hello all,

 here is my sample code 

 <ProgressBar  Orientation="Vertical" Minimum="0" Maximum="100" x:Name="prgTime"
                     Width="50" Height="350" Margin="50" x:Name="prgTime"
                    />

          and in window loaded    

       void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Duration duration = new Duration(TimeSpan.FromSeconds(30));
            DoubleAnimation doubleanimation = new DoubleAnimation(0, 100, duration);
            prgTime.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
        }

This code works fine in VS 2008 but when i copy paste in VS 2012- it does NOT work.

Am I missing something ?

Pls help

Regards

Durga



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>