If in WPF a decorative element is implemented using the abstract class Adorner, then how to achieve the implementation of this object in Avalonia UI?
//code wpf
public class ControlAdorner: Adorner
{
public ControlAdorner(UIElement adornedElement) : base(adornedElement)
{
}
protected override void OnRender(DrawingContext drawingContext)
{
Rect adornedElementRect = new Rect(this.AdornedElement.DesiredSize);
... some code ...
}
}