ItemContainerGenerator::ItemFromContainer Method (DependencyObject^)
.NET Framework (current version)
Returns the item that corresponds to the specified, generated UIElement.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- container
-
Type:
System.Windows::DependencyObject^
The DependencyObject that corresponds to the item to be returned.
Return Value
Type: System::Object^A DependencyObject that is the item which corresponds to the specified, generated UIElement. If the UIElement has not been generated, UnsetValue is returned.
| Exception | Condition |
|---|---|
| ArgumentException | container is null. |
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Show: