ResourceDictionaryDiagnostics.GetFrameworkElementOwners(ResourceDictionary) 方法

定義

取得指定資源字典的架構元素擁有者。Gets the framework element owners of a specified resource dictionary.

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

資源字典。A resource dictionary.

傳回

IEnumerable<FrameworkElement>

dictionary 的架構元素擁有者。The framework element owners of dictionary. 如果沒有任何架構項目擁有者,則方法會傳回 nullIf there are no framework element owners, the method returns null.

適用於