在WPF 4用户控件我可以定义在XAML像这样子控制的绑定...用户控件绑定 - 的RelativeSource
...
<ComboBox
ItemsSource="{Binding CBItems,
RelativeSource={RelativeSource AncestorType=UserControl}}"
...
/>
...
其中CBItems是在用户控件的代码后面定义的属性。
但是,此格式在Windows 8中不可用Metro - RelativeSource没有成员AncestorType。
如何在Windows 8中执行此类绑定?
问题是控件的名称在用户控件定义内部是未知的。 – Peregrine 2012-07-06 07:53:13