开发者

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

开发者 https://www.devze.com 2023-03-31 19:36 出处:网络
Well I wanna please ask you how can I implement a ribbon for example that have p开发者_Python百科rimitives like line, ellipse, rectangle, point, etc ... So that the user can drag any of these primitiv

Well I wanna please ask you how can I implement a ribbon for example that have p开发者_Python百科rimitives 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:

  • Implement it manually, based on mouse events. Here's a basic example from the MSDN. Also, here's a nice article on how you could do this with behaviors: Expression Blend 3: Trying a drag-and-drop behavior.
  • Use ComponentOne DragDropManager (not free).
  • Use Telerik DragDropManager (not free).
0

精彩评论

暂无评论...
验证码 换一张
取 消