0

wpfでプログラムでプログレスバーを作成しようとしています. これはこれまでの私のコードです

infoWindow = new Window();
infoWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
infoWindow.SizeToContent = SizeToContent.WidthAndHeight;
infoWindow.Title = "Please wait...";

StackPanel stackPanel = new StackPanel();
stackPanel.Orientation = Orientation.Vertical;

ProgressBar progressBar = new ProgressBar();
progressBar.IsIndeterminate = true;
progressBar.Margin = new Thickness(10,0,10,10);
progressBar.Visibility = Visibility.Visible;
progressBar.Height = 25;
progressBar.FlowDirection = FlowDirection.LeftToRight;
progressBar.Foreground = System.Windows.Media.Brushes.Green;
progressBar.Background = System.Windows.Media.Brushes.Red;

stackPanel.Children.Add(progressBar);

infoWindow.Content = stackPanel;
infoWindow.Show(); 

これから得られるのは、赤色のプログレスバー ストリップです。しかし、ファイルをコピーするときのようなアニメーションはありません。(進行状況は示したくありません。ストリップ全体を円形に移動する光だけです)。私がここで見逃しているアイデアはありますか?

4

0 に答える 0