2011-09-09 57 views
0

的我要绑定列XAML绑定到主的datacontext,不

主要的DataContext的ItemSource之前,我曾就干过这样的:

<telerik:GridViewComboBoxColumn Header="Type" DataMemberBinding="{Binding VehicleCondition}" ItemsSourceBinding="{Binding VehicleConditions,Source={StaticResource ShowroomLog}}" /> 

,但我删除

from app.xaml

and in showroomlogview.xaml我有decl合并

 xmlns:local="clr-namespace:WinITApp" DataContext="{Binding ShowroomLog, Source={StaticResource Locator}}"> 

不,它没有找到我vehicleconditions,但我不知道我怎么可以改变这个代码,让这个正确的。

我该如何做id?

回答

0

我做到了使用

"{Binding Source={StaticResource Locator}, Path=ShowroomLog.Handlers}"