The most efficient way to draw in silverlight

I am rewriting some wpf experiments in silverlight. In wpf, I like working directly with DrawingVisuals, which I manually add and remove from the canvas, which gives me excellent performance with a lot of elements. But, to my surprise, there is no such thing as DrawingVisuals in Silverlight. What is then the most effective way to draw on the screen a lot of objects that are capable of independent animation (they do not need to respond to mouse events)? Working with shapes has, at least in WPF, a lot of overhead.

+3
source share
2 answers

Check out some of the work that goes on around WriteableBitmap, such as Bill Reiss's article “ Blitting and Blending with Silverlight WriteableBitmap ” and Rene Schulte Articles 1 , 2 , and 3 on the WriteableBitmap extension.

Jeff Prosise also has a WriteableBitmap script.

This approach may be lower than the one you are looking for, but worth checking out.

+4
source

Forms are the most basic elements that can be independently animated in Silverlight.

Geometries are even more primitive, but they cannot be solved by animation. Even if you took on the animation with your own code, I'm not sure if it will be faster.

SL- - 5 , , , WPF, . , Silverlight Mac Windows.

0

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


All Articles