N
N
nevro2014-03-24 21:09:22
User interface
nevro, 2014-03-24 21:09:22

How to create your own graphic element for a .NET program?

New to C# and .NET. From experience with flash, I know that there is code and bitmaps of an element in various states. Lots of questions:
1. In .NET, as well as in Flash: are element states drawn in a raster or written in directX?
2. In what format and bitness to save the graphics?
3. How to merge with code? Through VS to pack in lib or dll?
4. Will such an element work on both desktop .NET and WindowsRT?
5. What if it is not a button, where it is enough to draw 3 states? I want to make a stopwatch in the form of an analog dial with a filling inner circle and numbers next to it. The number of seconds may vary. That is, it is not known in advance how many states there will be. And, besides, how to combine graphics and code for generating numbers, arrows: what to do with code and what with graphics (for example, draw numbers from 1 to 9, and in the code there will be only a counter, according to which the desired number will be pulled from graphic resources and displayed )?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Doshevsky, 2014-03-24
@MikhailD

Read a book on WPF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question