https://learn.microsoft.com/en-us/dotnet/api/system.windows.frameworkcontentelement.addlogicalchild?view=netframework-4.8.1&viewFallbackFrom=windowsdesktop-10.0
FrameworkContentElement.AddLogicalChild(Object) Method (System.Windows) | Microsoft Learn
Adds the provided element as a child of this element.
objectmethodsystemwindowsmicrosoft