0

错误 1 ​​XML 命名空间“ http://schemas.microsoft.com/winfx/2006/xaml/presentation ”中的“按钮”类型上不存在属性“命令” 。C:\Users\Admin\documents\visual studio 2010\Projects\MvvmLight2\Sample\MainPage.xaml 33 21 示例

4

1 回答 1

2

您需要Command在 XAML 中大写:

<Button Command="{Binding SomeCommand}">
于 2013-02-26T01:29:40.663 回答