拡張 WPF ツールキット BusyIndicator を使用しています
私のXaml
<extToolkit:BusyIndicator Name="wait" IsBusy="False" Cursor="Wait" Grid.ColumnSpan="3" Margin="10,10,10,10"/>
私のコード:
private void esp_Click(object sender, RoutedEventArgs e)
{
wait.IsBusy = true;
// My work here make some time to finish
wait.IsBusy = false;
}
しかし、決して表示されないので、関数の最後に MessageBox を作成し、BusyIndicator が MessageBox の後に表示されるようにします。
私は試した
wait.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send,
(Action)delegate
{
wait.IsBusy = true;
});
しかし、私は何も得られませんでした!!! ここで解決できない問題はどこにありますか?
同様の質問を見つけましたが、インジケーターが表示されるのと同じ問題はありませんが、機能が完了した後です。