Ejemplo n.º 1
0
        public ShapeVisual(Compositor compositor)
            : base(compositor)
        {
            Shapes = new CompositionShapeCollection(compositor, this);

            // Add this as context for the shape collection so we get
            // notified about changes in the shapes object graph.
            OnCompositionPropertyChanged(null, Shapes, nameof(Shapes));
        }
Ejemplo n.º 2
0
 public ShapeVisual(Compositor compositor)
     : base(compositor)
 {
     Shapes = new CompositionShapeCollection(this);
 }