private static void ShowAdorner(FrameworkElement frameworkElement, SimpleAdorner adorner)
        {
            var layer = AdornerLayer.GetAdornerLayer(frameworkElement);

            // layer could be null if control is no longer in the visual tree
            if (layer != null)
            {
                layer.Add(adorner);
            }
        }
        private static void ShowAdorner(FrameworkElement frameworkElement, SimpleAdorner adorner)
        {
            var layer = AdornerLayer.GetAdornerLayer(frameworkElement);

            // layer could be null if control is no longer in the visual tree
            if (layer != null)
                layer.Add(adorner);
        }