从数据源窗口拖动不起作用 [英] Dragging from data source window doesn't work

查看:109
本文介绍了从数据源窗口拖动不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我创建的访问数据源进行一些数据绑定。所有教程都说只需将列名拖放到控件上,然后就可以了。然而,当我尝试这个它什么都不做,当我点击任何表名从数据源窗口拖动时,鼠标变成死亡的红色圆
。我到处搜索,我找不到任何相同的问题。我在Windows 7平台上运行VS2008 Pro,我的主应用程序是WPF,所有文档
表示启用了此功能。我已尽力帮助你了!

I'm trying to do some data binding with an access data source i created. All the tutorials say just drag and drop the column names onto controls and presto it works. However, when i try this it does nothing and the mouse turns into the red circle of death when i click any of the table names to drag from the data source window. I have searched everywhere and i can't find any issues that are the same. I am running VS2008 Pro on a windows 7 platform and my main application is a WPF, which all the documentation says this feature is enabled. I have tried everything i can please help!!!

Tony

推荐答案

您好@datgmachine

Hi @datgmachine

很抱歉,在Visual Studio 2010之前,WPF应用程序没有启用此功能。您可以在
http://blogs.msdn.com/b/wpfsldesigner/archive/2010/01/ 15 / learn.aspx 功能;.在Visual
Studio 2008中为WPF和Silverlight应用程序启用声明此功能的任何文档都是错误的 - 如果您能提供任何此类文章的链接,我将不胜感激,因此我可以确保它得到纠正。该功能适用​​于VS2008中的Windows窗体应用程序。

I'm sorry but this feature was not enabled for WPF applications until Visual Studio 2010. You can see details and video walkthroughs of this feature and many other details at http://blogs.msdn.com/b/wpfsldesigner/archive/2010/01/15/learn.aspx . Any document that claims this feature is enabled for WPF and Silverlight applications in Visual Studio 2008 is incorrect - I'd be grateful if you could supply links to any such article so I can ensure it gets corrected. The feature worked for Windows Forms applications in VS2008.

即使使用Visual Studio 2010,用户有时也会在看到该功能"点亮"时出现问题,但这通常是由于您的注意力集中造成的在设计师的拆分视图的错误窗格上。如果在VS2010中拖放之前单击标记为"设计"的选项卡,则
这应该有效。如果焦点在XAML窗格上,则该功能不会"亮起"。因为它不支持拖放到XAML窗格。

Even with Visual Studio 2010, users sometimes have a problem seeing the feature "light up", but this is usually caused by having your focus on the wrong pane of the designer's split view. If you click on the tab marked Design prior to drag-drop in VS2010, this should work. If the focus is on the XAML pane, the feature does not "light up" because it doesn't support drag/drop to XAML pane.

您可以获得Visual Studio 2010的试用版(它为WPF / Silverlight开发人员提供了许多新功能和稳定性改进vs VS2008)在:

You can get a trial copy of Visual Studio 2010 (which has many, many new features and stability improvements for WPF/Silverlight developers vs VS2008) over at:

http://www.microsoft.com/visualstudio/

谢谢

标记

 


这篇关于从数据源窗口拖动不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆