我有以下情况:
- 我有一个用户控件,里面只有一个Grid.
- Grid的第一列是复选框列,它绑定到CustomerModel的IsSelected属性
- Grid的ItemsSource绑定到List <CustomerModel>
- 当用户检查任何CheckBox时,CustomerModel的相应IsSelected属性正在更新
查询:
我向UserControl添加了一个名为"SelectedCustomerItems"的依赖属性,我希望它返回一个List <CustomerModel>(仅用于IsSelected = true)
此UserControl放在另一个窗口上
- 依赖属性"SelectedCustomerItems"绑定到WindowViewModel中的"SelectedCustomers"属性
但我没有通过此依赖项属性获取SelectedCustomer项.断点没有打到Get {}请建议....