# C1.WPF.DataCollection.C1CollectionViewDataCollection.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_DataCollection_C1CollectionViewDataCollection__ctor_" data-uid="C1.WPF.DataCollection.C1CollectionViewDataCollection.#ctor*">C1CollectionViewDataCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_DataCollection_C1CollectionViewDataCollection__ctor_" data-uid="C1.WPF.DataCollection.C1CollectionViewDataCollection.#ctor*"></a>
<h4 id="C1_WPF_DataCollection_C1CollectionViewDataCollection__ctor_System_ComponentModel_ICollectionView_System_Boolean_" data-uid="C1.WPF.DataCollection.C1CollectionViewDataCollection.#ctor(System.ComponentModel.ICollectionView,System.Boolean)">C1CollectionViewDataCollection(ICollectionView, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.DataCollection.C1CollectionViewDataCollection.html">C1CollectionViewDataCollection</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1CollectionViewDataCollection(ICollectionView collectionView, bool honorIItemProperties = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(collectionView As ICollectionView, Optional honorIItemProperties As Boolean = True)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icollectionview">ICollectionView</a></td>
      <td><span class="parametername">collectionView</span></td>
      <td><p>The collection view.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">honorIItemProperties</span></td>
      <td><p>When setting to true and the collection view implements <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iitemproperties">IItemProperties</a>, the items of the data collection will be wrapped in a custom type whose properties obey this interface.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
