|
|
@@ -15,7 +15,7 @@ namespace Avalonia.Controls
|
|
|
/// Defines the NameScope attached property.
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<INameScope> NameScopeProperty =
|
|
|
- AvaloniaProperty.RegisterAttached<NameScope, Control, INameScope>("NameScope");
|
|
|
+ AvaloniaProperty.RegisterAttached<NameScope, Visual, INameScope>("NameScope");
|
|
|
|
|
|
private readonly Dictionary<string, object> _inner = new Dictionary<string, object>();
|
|
|
|
|
|
@@ -34,7 +34,7 @@ namespace Avalonia.Controls
|
|
|
/// </summary>
|
|
|
/// <param name="visual">The visual.</param>
|
|
|
/// <returns>The value of the NameScope attached property.</returns>
|
|
|
- public static INameScope GetNameScope(Control visual)
|
|
|
+ public static INameScope GetNameScope(Visual visual)
|
|
|
{
|
|
|
return visual.GetValue(NameScopeProperty);
|
|
|
}
|
|
|
@@ -44,7 +44,7 @@ namespace Avalonia.Controls
|
|
|
/// </summary>
|
|
|
/// <param name="visual">The visual.</param>
|
|
|
/// <param name="value">The value to set.</param>
|
|
|
- public static void SetNameScope(Control visual, INameScope value)
|
|
|
+ public static void SetNameScope(Visual visual, INameScope value)
|
|
|
{
|
|
|
visual.SetValue(NameScopeProperty, value);
|
|
|
}
|