ContentControlCollectionItem.ContentCollection Property
Provides access to an object’s collection of content controls.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
ContentControlCollection | A ContentControlCollection object that represents a collection of content controls. |
Remarks
Example
For ASPxPageControl:
<dx:ASPxPageControl ID="citiesTabPage" Width="100%" runat="server" CssClass="dxtcFixed" ActiveTabIndex="0" EnableHierarchyRecreation="True" >
<TabPages>
<dx:TabPage Text="London">
<ContentCollection>
<dx:ContentControl ID="ContentControl1" runat="server">
<dx:ASPxImage runat="server" ID="dxImage_London" ImageUrl="~/Content/TabControl/Images/Cities/TowerBridge.jpg" CssClass="dxtc-image-london"/>
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
<dx:TabPage Text="New-York">
<ContentCollection>
<dx:ContentControl ID="ContentControl2" runat="server">
<dx:ASPxImage runat="server" ID="dxImage_NewYork" ImageUrl="~/Content/TabControl/Images/Cities/BrooklynBridge.jpg" CssClass="dxtc-image-newyork" />
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
<dx:TabPage Text="Tokyo">
<ContentCollection>
<dx:ContentControl ID="ContentControl3" runat="server">
<dx:ASPxImage runat="server" ID="dxImage_Tokyo" ImageUrl="~/Content/TabControl/Images/Cities/TokyoTower.jpg" CssClass="dxtc-image-tokyo" />
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
</TabPages>
</dx:ASPxPageControl>
See Also