sir please tell me ...how i get next window after completion of progress bar ,below the coding of progress bar
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Timers;
namespace ProgressBarTutorial
{
///
/// Interaction logic for Window1.xaml
///
public partial class Window1 : Window
{
private Timer Timer;
public Window1()
{
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
Duration duration = new Duration(TimeSpan.FromSeconds(20));
DoubleAnimation doubleanimation = new DoubleAnimation(200.0, duration);
PBar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
}
private void PBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
}
//private void CreateDynamicProgressBarControl()
//{
// ProgressBar progbar = new ProgressBar();
// progbar.IsIndeterminate = false;
// progbar.Orientation = Orientation.Horizontal;
// progbar.Width = 150;
// progbar.Height = 15;
// Duration duration = new Duration(TimeSpan.FromSeconds(10));
// DoubleAnimation doubleanimation = new DoubleAnimation(100.0, duration);
// progbar.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
// sbar.Items.Add(progbar);
//}
}
}