我有一个UserControl
and 里面有一个DependencyProperty
EmployeeSchedule
可以接受 aDataTable
或 a 的DataRow
。我创建了一个Listbox
并在ItemTemplate
我提到的 thisUserControl
中。
我的问题是数据UserControl
是当前行或它所在的DataContext
行。ListboxItem
我将如何ListboxItem
向用户控件依赖属性提供数据?
谢谢
我有一个UserControl
and 里面有一个DependencyProperty
EmployeeSchedule
可以接受 aDataTable
或 a 的DataRow
。我创建了一个Listbox
并在ItemTemplate
我提到的 thisUserControl
中。
我的问题是数据UserControl
是当前行或它所在的DataContext
行。ListboxItem
我将如何ListboxItem
向用户控件依赖属性提供数据?
谢谢