WPF 中ProgressBar的Value属性的值在变化 但进度条不动是怎么回事啊?
UI:<ProgressBarHorizontalAlignment="Left"Height="11"Margin="10,414,0,0"VerticalAlignm...
UI:
<ProgressBar HorizontalAlignment="Left" Height="11" Margin="10,414,0,0"
VerticalAlignment="Top" Width="559" Maximum="100" Minimum="0"
Name="ProgressBar" Value="{Binding ValueMum, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
RenderTransformOrigin="0.84,2.2">
ShadeViewModel:
private static int valueMum;
public static int ValueMum
{
get
{ return valueMum; }
set
{
if (valueMum != value)
{
valueMum = value;
ViewModelBase VMB = new ViewModelBase();
VMB.OnPropertyChanged("ValueMum");
// MessageBox.Show("下载进度:" + Maximum);
}
}
}
public void OnValueMum(int text)
{
ShadeViewModel.ValueMum = text;
} 展开
<ProgressBar HorizontalAlignment="Left" Height="11" Margin="10,414,0,0"
VerticalAlignment="Top" Width="559" Maximum="100" Minimum="0"
Name="ProgressBar" Value="{Binding ValueMum, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
RenderTransformOrigin="0.84,2.2">
ShadeViewModel:
private static int valueMum;
public static int ValueMum
{
get
{ return valueMum; }
set
{
if (valueMum != value)
{
valueMum = value;
ViewModelBase VMB = new ViewModelBase();
VMB.OnPropertyChanged("ValueMum");
// MessageBox.Show("下载进度:" + Maximum);
}
}
}
public void OnValueMum(int text)
{
ShadeViewModel.ValueMum = text;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询