public MainWindowViewModel()
        {
            for (int i = 0; i < 100; i++)
            {
                ObservableCollection <CheckBoxViewModel> items = new ObservableCollection <CheckBoxViewModel>();
                for (int j = 0; j < 100; j++)
                {
                    var item = new CheckBoxViewModel();
                    item.X = i;
                    item.Y = j;

                    if (j % 2 == 0)
                    {
                        item.IsChecked = true;
                    }
                    item.PropertyChanged += ItemOnPropertyChanged;
                    items.Add(item);
                }
                Items.Add(items);
            }
        }
Exemplo n.º 2
0
 public ClickCommand(CheckBoxViewModel viewModel)
 {
     this.ViewModel = viewModel;
 }