【问题标题】:Partial declarations must not specify different base classes windows phone部分声明不得指定不同的基类 windows phone
【发布时间】:2013-02-13 17:13:49
【问题描述】:

我收到了这个错误:

public partial class MainPage : UserControl
{

    public MainPage()
    {

        InitializeComponent();


    }

}

我的 xaml 是这样的:

<UserControl x:Class="GameMemory.MainPage"..../>

除了返回错误:调用在以下方法或属性之间不明确:'GameMemory.MainPage.InitializeComponent()' 和 'GameMemory.MainPage.InitializeComponent()' 请问有什么想法吗?

【问题讨论】:

    标签: windows-phone-7 user-controls mvvm-light


    【解决方案1】:

    您引用的其中一个程序集似乎有一个名为 UserControl 的类。 检查您的 using 声明。

    【讨论】:

    • 请你解释一下,我没明白你想说什么。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多