阅读背景:

如何使用StaticResource在XAML中定义DataContext

来源:互联网 

I want to declare a DataContext through a static resource in XAML as a binding for the Customers in the Northwind database. I can do this easily in code (C#) but want to learn how to do in XAML. I have tried all of the examples I can find but none of them work for me. I believe the issue is in the two XAML lines of code I have labeled [Option1] and [Option2]. Can you clarify what the syntax for this really should be?I want to declare a DataContext through a stati




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: