如何使控件“可移动” Silverlight 4 中的用户端
我的页面上有一个文本块。基本上,我希望允许用户能够单击并拖动此文本块,将其移动到页面上他们想要的任何位置。据我所知,文本块控件中没有可以修改的属性来允许用户执行此操作。
我不知道是否有我刚刚俯瞰的房产。不过,我认为我必须以不同的方式来解决这个问题,因此最好通过一系列单击/鼠标移动事件来解决这个问题,或者是否有更简单的方法来实现我的最终目标,即使该控件“移动-用户能够”吗?
我正在使用 Silverlight-4.0、C#-4.0 和 Visual Studio 2010 环境进行编程,
I have a text block on my page. Basically, I'd like to allow the user to be able to click and drag this text block to move it wherever they would like on the page. From what I could tell there are no properties in the text block control that I can tinker with to allow the user to do this.
I didn't know if there was a property I was just overlooking. I assume I have to go about this a different way, though, and so would this be best gone about through a series of click/mouse movement events, or is there an easier way to reach my end goal of making this control "move-able" by the user?
I am programming in Silverlight-4.0, C#-4.0, with the Visual Studio 2010 environment,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看下面的链接:
http://msdn.microsoft.com/en-us/library/cc189066(VS.95).aspx
Silverlight Toolkit 还有一个拖放管理器。
There is also the following project on CodePlex that may interest you:
http://silverlightdragdrop.codeplex.com/
Take a look on the following link:
http://msdn.microsoft.com/en-us/library/cc189066(VS.95).aspx
Silverlight Toolkit has also a dragdrop manager.
There is also the following project on CodePlex that may interest you:
http://silverlightdragdrop.codeplex.com/