VirtualizedContainerService.GetContainer(ModelItem, ICompositeView) 方法

定义

获取一个容器,并将其与指定的模型项相关联,然后返回一个表示此关联的 UI 元素。

public:
 System::Windows::UIElement ^ GetContainer(System::Activities::Presentation::Model::ModelItem ^ modelItem, System::Activities::Presentation::ICompositeView ^ sourceContainer);
public System.Windows.UIElement GetContainer (System.Activities.Presentation.Model.ModelItem modelItem, System.Activities.Presentation.ICompositeView sourceContainer);
member this.GetContainer : System.Activities.Presentation.Model.ModelItem * System.Activities.Presentation.ICompositeView -> System.Windows.UIElement
Public Function GetContainer (modelItem As ModelItem, sourceContainer As ICompositeView) As UIElement

参数

modelItem
ModelItem

与容器相关联的 ModelItem

sourceContainer
ICompositeView

与模型项相关联的 ICompositeView

返回

一个 UIElement,表示与模型项相关联的容器。

适用于