1
我有下面的结合问题:WPF绑定:等待的ItemsSource
<telerik:RadComboBox ItemsSource="{Binding Source={StaticResource TemplateDataSource}, Path=Templates}"
SelectedValue="{Binding Template}"
SelectedValuePath="Id"
DisplayMemberPath="Title"
Margin="0">
</telerik:RadComboBox>
我所有的数据被加载通过WCF数据服务异步。
不时我得到以下错误(这我可以追溯至上述绑定)
Specified argument was out of the range of valid values.
Parameter name: index
现在,我想这事做与提供的SelectedValue(模板)的实体所加载在ItemsSource之前。这可能吗?有没有解决这个问题,就像等待ItemsSource加载?
感谢您提前提供任何帮助!
PresentationTraceSources.TraceLevel =“高”也可能有所帮助。我会声明模式=。 – Paparazzi
我会给这两个尝试,谢谢。 –