【发布时间】:2013-02-13 15:50:18
【问题描述】:
你可能已经猜到我是个菜鸟。我注意到,在尝试使用 VS express 为 windows phone 制作 windows phone 应用程序时,如果我会很快遇到问题:
- 在 xaml 中添加文本块
- 在文本块的标记中添加 Click="thing"
- 在后面的代码中声明
private void thing(object sender, MouseButtonEventArgs e) { return; }
VS 不允许我编译,因为 xml命名空间“http://schemas.microsoft.com/winfx/2006/xaml/presentation”中的“TextBlock”类型中不存在“Click”属性
我知道这个论坛通常不适合这些基本的东西,但我真的不明白我怎么能把这两个东西搞砸。 提前致谢
【问题讨论】:
-
“点击”不是 TextBlock 拥有的事件。你想做什么,也许我们可以建议一个替代控制。
-
除了上面的评论,您可以通过查看the documentation 轻松找到自己。
标签: c# visual-studio silverlight events click