共用方式為


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

適用於