WPF ProgressBar 样式

<ProgressBar Grid.Row="2" Foreground="#45d207" IsIndeterminate="True" Margin="0" Background="#eaefef">
</ProgressBar>

效果如下:

Foreground为移动的进度条;

IsIndeterminate设为True时,进度条能够左右移动;

Background为ProgressBar的背景;

原文地址:https://www.cnblogs.com/ryanzheng/p/8583838.html