How to Select,resize and move shapes runtime in WPF
-
22 Agustus 2012 14:01
Hi friends,
i'm new to WPF and i need a solution for my logic,
My scenario is as follows,
In runtime screen, i have a button, when i click that button i want to place one Square Shape on my screen.
Then user can select that Square shape and resize, move to different location of that selected Square.I guess we can move the objects with drag behaviour, but i don't have idea about Selection and resize.
So Is there any option/behaviour to select a shape on runtime screen, resize or move in WPF (bare of any thirdparty dlls) or we have to do manually writing in all events like VB6 code ?
( like most of the designing tools ).
Please help me if anyone has idea.
Thanks - Ravi
Semua Balasan
-
22 Agustus 2012 14:06
Following is an excellent article which you can refer to draw, resize and move shape in WPF
http://www.codeproject.com/Articles/22776/WPF-DrawTools
Gaurav Khanna | Microsoft VB.NET MVP
- Ditandai sebagai Jawaban oleh Ravi exact 31 Agustus 2012 13:35
-
22 Agustus 2012 14:39Moderator
I was looking for something similar recently, and can recommend the following resources:
http://denisvuyka.wordpress.com/2007/10/13/the-wpf-resizing-adorner-for-canvas/
http://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part-1
#PEJL
- Diedit oleh XAML guyMicrosoft Community Contributor, Moderator 22 Agustus 2012 14:40 tidy
- Diedit oleh XAML guyMicrosoft Community Contributor, Moderator 22 Agustus 2012 14:40 tidy
- Ditandai sebagai Jawaban oleh Ravi exact 31 Agustus 2012 13:35