8,735
社区成员
发帖
与我相关
我的任务
分享
<CheckBox Content="上传失败" IsChecked="{Binding SearchInterfaceLogIsNotSuccess, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource AlignmentCheckBoxStyle}" Canvas.Left="664" Canvas.Top="25" Width="92" Height="18"/>
int searchInterfaceLogIsNotSuccess = 0;
public int SearchInterfaceLogIsNotSuccess
{
get
{ return searchInterfaceLogIsNotSuccess; }
set
{
if (searchInterfaceLogIsNotSuccess != value)
{
searchInterfaceLogIsNotSuccess = value;
OnPropertyChanged(nameof(SearchInterfaceLogIsNotSuccess));
}
}
}
public class MainViewModel : INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}