progressBar

int offset=0;

int size=4096;

progressBar.Maximum = int.MaxValue;

progressBar.Minimum = 0;

progressBar.Value = 0;

offset += size;

progressBar.Value = offset;
//百分比
PbLabel.Content = (offset*100 / int.MaxValue)  + "%";

 

你可能感兴趣的:(ProgressBar)