Live Chat Icon For mobile
Live Chat Icon

How do I use DrawingVisual object ?

Platform: WPF| Category: Visual Layer

In order to use DrawingVisual objects, you need to create a host container to store the DrawingVisual objects. Find the following code snippets,

public class VisualHostContainer : FrameworkElement
    private VisualCollection _myVisualCollection;
    public VisualHostContainer()
        _myVisualCollection = new VisualCollection(this);

Reference link:

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.