Creating SPECIFIC Dynamic Visuals - House Plan with Objects (FOLLOWING)

Yesterday I asked a question about how to dynamically display something in .NET: in particular, I asked about how to create a white “canvas” for “drawing”, / rendering, which frames to use, etc. However, many of the answers suggested that I ask a more specific answer, so right now I came up with a completely hypothetical (and random) example of what I want to accomplish.

The following example: let it be assumed that I am trying to create an application in which the user can first draw some rectangles (by clicking or entering measurements) to create the outlines of their home. Then they can draw small rectangles inside to indicate objects inside the house. In addition, they can pan or zoom. (Do not forget that this is a completely random example.)

So, if I tried to do this, I think I have the following questions:

  • How to create a white canvas for drawing everything? Some answers to my first question suggested using WPF, and I want to try this. Is there a specific control that I need to add to XAML to allow me to display such dynamic materials on top of it?

  • How to draw / draw such shapes on canvas and how to change it at runtime (pan / zoom)?

  • Is it necessary to create a simple coordinate plane for reference and storage of all objects and their locations inside the "house"? If so, how?

I hope this is not too general, because I believe that using this example will allow people to effectively answer this question. Thanks!

+2
source share
1 answer

HTML makes a big blank canvas.

OpenGL DirectX (, /). - , .

0

Source: https://habr.com/ru/post/1723740/


All Articles