Text on a ProgressBar in WPF

前端 未结 7 1163
日久生厌
日久生厌 2021-02-01 12:09

This may be a no-brainer for the WPF cognoscenti, but I\'d like to know if there\'s a simple way to put text on the WPF ProgressBar. To me, an empty progress bar looks naked. Th

7条回答
  •  后悔当初
    2021-02-01 13:06

    Right click ProgressBar, and click Edit Template > Edit a Copy.

    Then put the TextBlock as shown below just above the closing tag of Grid in the Style generated by VS.

       
       
     
     
    

提交回复
热议问题