语言

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

资源字典。

返回

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

适用于