如何配置Visual Studio 2012以自动生成绑定控件的代码 [英] How to configure Visual Studio 2012 to autogenerate code for binded control
本文介绍了如何配置Visual Studio 2012以自动生成绑定控件的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我有问题。在此链接中:
http://msdn.microsoft.com/en-us/ data / gg638943 [ ^ ]
我们可以看到代码是自动生成的。但是当我以相同的方式拖放某个实体时,visual studio只生成这个:
Hello
I have problem. In this link:
http://msdn.microsoft.com/en-us/data/gg638943[^]
we can see that code is automatically generated. But when I drag and drop some entity in the same way, visual studio generate only this:
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Testowy
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
System.Windows.Data.CollectionViewSource taktTimerEntitiesViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("taktTimerEntitiesViewSource")));
// Load data by setting the CollectionViewSource.Source property:
// taktTimerEntitiesViewSource.Source = [generic data source]
}
}
}
我有visual studio 2012.我在Visual Studio 2010 Express中尝试过相同但情况相同。有人可以帮忙吗?
I have visual studio 2012. I tried the same in Visual Studio 2010 Express but situation was the same. Can somebody help?
推荐答案
这篇关于如何配置Visual Studio 2012以自动生成绑定控件的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文