【问题标题】:The property 'command' does not exist on the type 'Button'“按钮”类型上不存在属性“命令”
【发布时间】:2013-02-11 08:22:19
【问题描述】:

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

【问题讨论】:

  • 如果您发布有关上下文以及您如何使用它的信息,而不仅仅是一条错误消息,这会有所帮助...

标签: visual-studio-2010 silverlight mvvm mvvm-light


【解决方案1】:

您需要在 XAML 中将 Command 大写:

<Button Command="{Binding SomeCommand}">

【讨论】:

    猜你喜欢
    • 2020-08-06
    • 1970-01-01
    • 2021-11-17
    • 2019-11-30
    • 2021-01-09
    • 2021-07-10
    • 2017-04-27
    • 2020-10-31
    相关资源
    最近更新 更多