wpf custom control: draggable/resizable rectangle within another rectangle

后端 未结 2 703
我寻月下人不归
我寻月下人不归 2021-02-03 12:04

I\'m looking into a control with two rectangles: one inside the other. I want the user to be able to drag the inner rectangle, resize it and if possible rotate it as well within

相关标签:
2条回答
  • 2021-02-03 12:10

    This guy on CodeProject has a series of articles that do exactly what I think you're looking for. I expect the first article will be of most help to you, but the entire series is good.

    1. Drag, resize, and rotate elements on a canvas

    2. Designer Canvas with Zoombox

    3. Connecting Items

    4. A frankenbuild

    0 讨论(0)
  • 2021-02-03 12:26

    This : Codeproject is something quite similar. If you can't find anything that suits you more then it is in my opinion a good base to start.

    0 讨论(0)
提交回复
热议问题