匯出 (0) 列印
全部展開
EN
本內容沒有您的語言版本,但有英文版本。

ItemsControl.ItemsControlFromItemContainer Method

Returns the ItemsControl that owns the specified container element.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public static ItemsControl ItemsControlFromItemContainer(
	DependencyObject container
)

Parameters

container
Type: System.Windows.DependencyObject
The container element to return the ItemsControl for.

Return Value

Type: System.Windows.Controls.ItemsControl
The ItemsControl that owns the specified container element; otherwise, null. The ItemsControlFromItemContainer method returns null if container is not a UIElement or the parent is not an ItemsControl.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

顯示:
© 2015 Microsoft