效果

WPF 进度条ProgressBar配文字

实现代码

<Grid>
    <ProgressBar Value="50" Name="pbStatus"/>
    <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=pbStatus, Path=Value, StringFormat={}{0:0}%}"></TextBlock>
</Grid>

示例代码

ProcessBarWithTextWindow

参考资料

Text on a ProgressBar in WPF

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-07-18
  • 2021-11-22
  • 2021-04-09
  • 2021-05-26
猜你喜欢
  • 2022-02-04
  • 2021-05-17
  • 2022-01-02
  • 2022-01-05
  • 2021-11-19
  • 2021-12-17
相关资源
相似解决方案