private void AddSelectionAdorner()
 {
     if (!adornerAdded)
     {
         selectionAdorner        = new RectangleSelectionAdorner(this);
         selectionAdorner.Border = zoomRect;
         adornerLayer.Add(selectionAdorner);
     }
     adornerAdded = true;
 }
Exemple #2
0
        private void AddSelectionAdorner()
        {
            if (!adornerAdded)
            {
                AdornerLayer layer = AdornerLayer;
                if (layer != null)
                {
                    selectionAdorner = new RectangleSelectionAdorner(this)
                    {
                        Border = zoomRect
                    };

                    layer.Add(selectionAdorner);
                    adornerAdded = true;
                }
            }
        }