ResourceDictionaryDiagnostics.GetFrameworkElementOwners 方法

定义

获取指定资源字典的框架元素所有者。

public:
 static System::Collections::Generic::IEnumerable<System::Windows::FrameworkElement ^> ^ GetFrameworkElementOwners(System::Windows::ResourceDictionary ^ dictionary);
public static System.Collections.Generic.IEnumerable<System.Windows.FrameworkElement> GetFrameworkElementOwners (System.Windows.ResourceDictionary dictionary);
static member GetFrameworkElementOwners : System.Windows.ResourceDictionary -> seq<System.Windows.FrameworkElement>
Public Shared Function GetFrameworkElementOwners (dictionary As ResourceDictionary) As IEnumerable(Of FrameworkElement)

参数

dictionary
ResourceDictionary

资源字典。

返回

IEnumerable<FrameworkElement>

dictionary 的框架元素所有者。 如果没有框架元素所有者,此方法将返回 null

适用于