H
H
HitGirl2019-04-19 19:39:18
.NET
HitGirl, 2019-04-19 19:39:18

How to draw, create animations and render data in wpf/uwp?

Hello!
Windows Forms has a GDI+ library with various methods for drawing, as well as the OnPaint event, which allows you to draw or render data in desktop applications.
However, WPF/UWP does not have either GDI+ or OnPaint events.
But there are several options for drawing:
1. Use controls from Windows Forms: this is like a crutch, and perhaps Microsoft will abandon Windows Forms.
2. DirectX-OpenGl: very low-level compared to GDI+, it is relatively difficult to integrate a component on a form + minuses from the first point (if it is a Windows Forms control).
3. Adding various elements (lines, shapes) to the Canvas: the result is a Canvas with a collection of elements, not an image. How in this case to implement, for example, an eraser?
4. InkCanvas: very limited in functionality.
Can you please tell me how to properly render and draw in wpf / uwp desktop applications, while retaining the ability to use other controls, or is it better to choose another language for such tasks?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Oleg Pogrebnyak, 2019-04-19
@HitGirl

There is an OnRender .

V
vreitech, 2017-03-06
@fzfx

make sure you don't have hyper-v enabled.

A
Axian Ltd., 2017-03-06
@AxianLTD

ixnfo.com/reshenie-oshibki-v-virtualbox-unable-to-... - right?

V
Vladimir Kuzin, 2017-03-07
@Bobson8

Now I can ask a stupidity: do you even have virtualization support enabled in the BIOS? Enable support in the BIOS, if there is none at all (an old motherboard, for example), disable PAE on the virtualbox.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question