D
D
Daniel Demidko2019-02-19 09:31:31
WPF
Daniel Demidko, 2019-02-19 09:31:31

A ready-made component for stretching shapes?

Everyone knows about the arrows that appear when creating a shape in Paint / Paint3D and allow you to stretch it.
Is there a similar functionality in WPF, if not, what is the easiest way to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cyber_roach, 2019-02-19
@DanielDemidko

Basic - no.
As far as I remember such things are done via Behavior's or addonners
Here's an old example of a behavior using the System.Windows.Interactivity library
10rem.net/blog/2010/01/09/a-wpf-behavior-for-windo...
Here's an even older one , but here, in my opinion, a more correct approach is through custom controls and Addonners, you can simply get the necessary pieces of code for yourself.
https://www.codeproject.com/Articles/22952/WPF-Dia...
And here is just the documentation, where all the necessary knowledge to make the same, but your own with blackjack and queens
https://docs.microsoft.com/ en-us/dotnet/framework/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question