【问题标题】:Error deploying windows phone app [closed]部署 Windows Phone 应用程序时出错 [关闭]
【发布时间】:2014-02-08 00:11:29
【问题描述】:

部署我的应用时出现以下错误:

在“Program.MainPage”类中找不到事件处理程序“Input_TextChanged”

发生了什么,我该如何解决?

【问题讨论】:

    标签: c# visual-studio xaml windows-phone-8


    【解决方案1】:

    您的 MainPage.xaml 代码中的某处可能有这样的内容:

    <TextBox TextChanged="Input_TextChanged" />
    

    但在您的 MainPage.xaml.cs 代码中没有处理程序,应该如下所示:

    private void Input_TextChanged(object sender, TextChangedEventArgs e)
    {
    
    }
    

    因此,要么从 XAML 中删除 TextChanged="Input_TextChanged",要么将事件处理程序添加到代码隐藏文件中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-02
      • 1970-01-01
      相关资源
      最近更新 更多