How do you show progress when IsIndeterminate=“True” in a WPF progress bar?

后端 未结 7 639
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 07:50

This has to be the simplest question of all, but I cannot seem to figure it out. I have the progress bar in place. How do I make it show progress? How do I start the thing?<

相关标签:
7条回答
  • 2020-12-31 08:50

    Don't set it to IsIndeterminate during the initialisation (i.e. UI designer in XAML, or the constructor on the code side) of the window that owns it. If you do then the animation will not start. Set it within the 'Loaded' event handler.

    I would have IsIndeterminate = 'False' on the XAML side, and then in the Window_Loaded event, set:

    myProgressBar.IsIndeterminate = true;
    
    0 讨论(0)
提交回复
热议问题