diff --git a/components/Extensions/src/Element/FrameworkElementExtensions.RelativeAncestor.cs b/components/Extensions/src/Element/FrameworkElementExtensions.RelativeAncestor.cs
index 701036cb..f260cfbb 100644
--- a/components/Extensions/src/Element/FrameworkElementExtensions.RelativeAncestor.cs
+++ b/components/Extensions/src/Element/FrameworkElementExtensions.RelativeAncestor.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System;
-
namespace CommunityToolkit.WinUI;
///
@@ -39,7 +37,7 @@ public static void SetAncestor(DependencyObject obj, object value)
/// Gets the Type of Ancestor to look for from this element.
///
/// Type of Ancestor to look for from this element
- public static Type GetAncestorType(DependencyObject obj)
+ public static Type GetAncestorType(FrameworkElement obj)
{
return (Type)obj.GetValue(AncestorTypeProperty);
}
@@ -47,7 +45,7 @@ public static Type GetAncestorType(DependencyObject obj)
///
/// Sets the to look for from this element and place in the .
///
- public static void SetAncestorType(DependencyObject obj, Type value)
+ public static void SetAncestorType(FrameworkElement obj, Type value)
{
obj.SetValue(AncestorTypeProperty, value);
}