Expose ListView ItemTemplate inside UserControl and allow markup?
<p>I'm trying to create a UserControl that contains a ListView and a number of other controls / methods we've been repeating for every list we create.</p>

<p>Is it possible to expose the ItemTemplate property and allow markup for it when using the UserControl? I essentially want to add properties to the ListView but allow for the ease of design in an ASCX rather than programmatically creating all of my wrapping controls.</p>

<p><strong>The markup for the UserControl so far;</strong></p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SuperListView.ascx.cs" Inherits="Sandbox.SuperListView" %&gt;
&lt;div class="listwrapper"&gt;
    &lt;h1&gt;
        &lt;asp:Label ID="lbl_Header" runat="server" /&gt;
        &lt;asp:Button ID="cmd_CreateNew" runat="server" CssClass="create" /&gt;
    &lt;/h1&gt;
    &lt;asp:Panel ID="pnl_Filter" runat="server"&gt;
        &lt;h3&gt;&lt;asp:Label ID="lbl_Filter" runat="server" /&gt;&lt;/h3&gt;
        &lt;asp:Panel ID="pnl_FilterContents" runat="server"&gt;

        &lt;/asp:Panel&gt;
        &lt;asp:Button ID="cmd_Apply" runat="server" /&gt;
        &lt;asp:Button ID="cmd_Clear" runat="server" /&gt;
    &lt;/asp:Panel&gt;
    &lt;asp:ListView ID="frm_Data" runat="server"&gt;
        &lt;LayoutTemplate&gt;&lt;div id="itemPlaceHolder" runat="server" /&gt;&lt;/LayoutTemplate&gt;
    &lt;/asp:ListView&gt;
&lt;/div&gt;
</code></pre>

<p><strong>Faux-markup for what I hope to do with this UserControl;</strong></p>

<pre><code>&lt;uc:SuperListView ID="frm_MyData" runat="server" Header="My Data"&gt;
    &lt;ItemTemplate&gt;
        &lt;%# Container.DataItem %&gt;
    &lt;/ItemTemplate&gt;
&lt;/uc:SuperListView&gt;
</code></pre>
