Home » FAQ » WPF » Adorners » How do I bind an Adorner to an Element ?
To bind an adorner to a particular UI element, the following things needs to be done.
[C#] AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(myTextBox); adornerLayer.Add(new ControlAdorner(myTextBox));
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with