AdornerLayer.GetAdornerLayer() return NULL for all controls in a Panel
I'm facing the fact that i cannot understand Well how AdornerLayer is added for UIElements. I have such a situation: I have a WPF Form which is built with 3 controls: A Grid on which are 1 Button and 1 TextBox . In my System, when I click to open this Form, all 3 elements have AdornerLayer not null . var controls = _frameworkElementProvider.GetUIElements(Content); var controlsWithAddorner = new List<FrameworkElement>(); foreach (var control in controls) { var adornerLayer = AdornerLayer.GetAdornerLayer(control); if (adornerLayer != null) { controlsWithAddorner.Add(control); } } The collection