绑定到主数据上下文,而不是行的
我想将列的 itemsource 绑定到 xaml 的主数据上下文
在我这样做之前:
<telerik:GridViewComboBoxColumn Header="Type" DataMemberBinding="{Binding VehicleCondition}" ItemsSourceBinding="{Binding VehicleConditions,Source={StaticResource ShowroomLog}}" />
但我删除了
从 app.xaml
和 showroomlogview.xaml 中我有声明
xmlns:local="clr-namespace:WinITApp" DataContext="{Binding ShowroomLog, Source={StaticResource Locator}}">
“不,它没有找到我的车辆条件”,但我不知道如何更改此代码以使其正确。
怎样才能办身份证呢?
I want to bind itemsource of column to main datacontext of xaml
Before I had it done like that:
<telerik:GridViewComboBoxColumn Header="Type" DataMemberBinding="{Binding VehicleCondition}" ItemsSourceBinding="{Binding VehicleConditions,Source={StaticResource ShowroomLog}}" />
but I removed
from app.xaml
and in showroomlogview.xaml I have declaration
xmlns:local="clr-namespace:WinITApp" DataContext="{Binding ShowroomLog, Source={StaticResource Locator}}">
No it doesn't find me vehicleconditions, but I don't know how I can change this code to have this correct.
How can I do id?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我用的是
I did it using