user2261524
user2261524

Reputation: 415

Coordinate System in C#

I'm trying to make a coordinate system with some features in C#. I never worked with C# but think it should be similar to other languages.

I'm not sure which element is suitable for that (Panel,PictureBox,....).

The requirements are:

I'm using Visual Studio 2012. I dont want use other dll/libraries or programms from other people.

Thx

PS:Maybe a simple tutorial would be also great.

Upvotes: 3

Views: 4430

Answers (1)

Hossein Narimani Rad
Hossein Narimani Rad

Reputation: 32481

I did the same thing using a simple Canvas in WPF. So I suggest you change your platform to WPF. Zoom in/out behavior can be done using a ScaleTransform and move left/right/... can be done using a TranslateTransform. No need to any library, you can use geometric types int wpf such as Path. And set the RenderTransform property of every path to these transform functions.

Upvotes: 3

Related Questions