Вопрос

I have a Grid control which contains a Viewport3D amongst some other things and I would like to have a "live preview" of this Grid's contents drawn in another control using WPF. Can anyone tell me the best/fastest way to do this? :)

In an ideal world I'd like to avoid serialising to a bitmap and copying the buffer manually since the Grid control has a large resolution.

Thanks in advance!

Это было полезно?

Решение

A VisualBrush is what you are looking for. And for Hittesting, this should be helpful.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top