FROM#/. NET: creating dynamic visual objects in C #

NOTE. I am not quite sure how to headline or tag this question, so if you have any ideas, PLEASE help!

I am currently presenting several possible projects that include dynamically displaying something (be it a dot, line, text or musical notes in a staff, a hypothetical example), but if I were to complete these projects, I’m not quite sure how approach this design. I’m wondering how programs such as Word, or Geometre Sketchpad or Finale, create an empty canvas and display text, geometry or music on it, respectively - how can this be done in C #, or in .NET, in general ?

First of all, what is the best platform / platform to use : WinForms, WPF, something else? I am open to many options as I am just trying to understand the various ways in which this can be done.

Further, how can I create such a “canvas” (if we return to this metaphor) using the different frames that you answered for part 1? And also, how can I display material on it?

Hope my question is not too confusing or n00bie. I just don’t know how to approach this perspective. Thanks!

UPDATE . I have now added the following question , which is less broad. I presented a hypothetical example of what I would like to accomplish. However, I will still accept the answer here, although my question has not received a complete answer.

+3
source share
4 answers

WPF is probably right for your project. I like the Pro WPF book in C # 2008: Windows Presentation Foundation with .NET 3.5, it covers most of the topics you ask for.

You will probably get better answers with a more focused question. The scope of your question is too large to be answered easily or briefly.

+2

WPF , . , WPF .

XAML, , , Illustrator -, SVG SVG-XAML-.

WPF Unleashed, 2D- DrawingContext .

+1

, Paint? , Windows - , . , Paint, . ,

  • Word: WordDocument , / , / . ... , , , WordDocument - , . myForm.Invalidate(), (, , ). = > .

  • : , "", "", "" .. , OnPaint, . : myGraphics.DrawLine(..), myGraphics.DrawCircle(..)

  • .

, , - , , OnPaint(), DrawMe (..) . : myCircle.DrawMe(..), myScore.DrawMe(..)

, ,

+1

- .

, ( , )?

- , , , 2D- - 3D?

0

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


All Articles