diff --git a/build/Base.props b/build/Base.props
index e565ab1664..2968fe5175 100644
--- a/build/Base.props
+++ b/build/Base.props
@@ -1,5 +1,6 @@
+
-
\ No newline at end of file
+
diff --git a/src/Avalonia.Styling/Controls/ChildNameScope.cs b/src/Avalonia.Styling/Controls/ChildNameScope.cs
new file mode 100644
index 0000000000..c3c3109502
--- /dev/null
+++ b/src/Avalonia.Styling/Controls/ChildNameScope.cs
@@ -0,0 +1,54 @@
+using System.Threading.Tasks;
+
+namespace Avalonia.Controls
+{
+ public class ChildNameScope : INameScope
+ {
+ private readonly INameScope _parentScope;
+ private readonly NameScope _inner = new NameScope();
+
+ public ChildNameScope(INameScope parentScope)
+ {
+ _parentScope = parentScope;
+ }
+
+ public void Register(string name, object element) => _inner.Register(name, element);
+
+ public ValueTask