https://learn.microsoft.com/cs-cz/dotnet/api/system.windows.markup.inamescope.unregistername?view=netframework-4.8.1&viewFallbackFrom=windowsdesktop-8.0
INameScope.UnregisterName(String) Method (System.Windows.Markup) | Microsoft Learn
Unregisters the provided name from the current XAML namescope.
stringmethodsystemwindowsmarkup