简体   繁体   English

如何使用可拖动和可调整大小的属性动态添加Silverlight基元?

[英]How can I add silverlight primitives dynamically with draggable and resizable properties?

Well I wanna please ask you how can I implement a ribbon for example that have primitives like line, ellipse, rectangle, point, etc ... So that the user can drag any of these primitives from the ribbon and drag it in the grid where he can drag, drop and resize the added primitive freely. 好吧,我想问你如何实现具有例如线,椭圆,矩形,点等图元的功能区,以便用户可以将任何这些图元从功能区拖动到网格中,他可以自由地拖放添加的图元并调整其大小。

Thanks 谢谢

I'm afraid that the Silverlight toolkit drag and drop classes won't help you here since you won't be using any standard drop target, so your options for the drag and drop are: 恐怕Silverlight工具箱的拖放类在这里无法为您提供帮助,因为您将不会使用任何标准的放置目标,因此您可以使用以下拖放选项:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM