# C1.WPF.Maps.MapVirtualLayer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Maps_MapVirtualLayer" data-uid="C1.WPF.Maps.MapVirtualLayer" class="text-break">MapVirtualLayer Class
</h1>
  <div class="markdown level0 summary"><p>A <a class="xref" href="C1.WPF.Maps.IMapLayer.html">IMapLayer</a> that displays its items positioned geographically and only shows the items actually in view.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><span class="xref">MapVirtualLayer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="C1.WPF.Maps.IMapLayer.html">IMapLayer</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Maps.html">C1.WPF.Maps</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Maps.dll</h6>
  <h5 id="C1_WPF_Maps_MapVirtualLayer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ItemsHost&quot;, Type = typeof(MapItemsLayer))]
public class MapVirtualLayer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IMapLayer, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ItemsHost&quot;, Type:=GetType(MapItemsLayer))&gt;
Public Class MapVirtualLayer
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IMapLayer, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer__ctor" data-uid="C1.WPF.Maps.MapVirtualLayer.#ctor">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.-ctor.html#C1_WPF_Maps_MapVirtualLayer__ctor">MapVirtualLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.html">MapVirtualLayer</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_ItemTemplateProperty" data-uid="C1.WPF.Maps.MapVirtualLayer.ItemTemplateProperty">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.ItemTemplateProperty.html">ItemTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.ItemTemplate.html#C1_WPF_Maps_MapVirtualLayer_ItemTemplate">ItemTemplate</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_IsDisposed" data-uid="C1.WPF.Maps.MapVirtualLayer.IsDisposed">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.IsDisposed.html#C1_WPF_Maps_MapVirtualLayer_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_ItemTemplate" data-uid="C1.WPF.Maps.MapVirtualLayer.ItemTemplate">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.ItemTemplate.html#C1_WPF_Maps_MapVirtualLayer_ItemTemplate">ItemTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> used to display each item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_MapItemsSource" data-uid="C1.WPF.Maps.MapVirtualLayer.MapItemsSource">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.MapItemsSource.html#C1_WPF_Maps_MapVirtualLayer_MapItemsSource">MapItemsSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets os sets the current <a class="xref" href="C1.WPF.Maps.IMapVirtualSource.html">IMapVirtualSource</a> for this C1MapVirtualLayer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_Slices" data-uid="C1.WPF.Maps.MapVirtualLayer.Slices">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.Slices.html#C1_WPF_Maps_MapVirtualLayer_Slices">Slices</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.WPF.Maps.MapSlice.html">MapSlice</a> specifying how the map is partitioned for virtualization.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_Dispose" data-uid="C1.WPF.Maps.MapVirtualLayer.Dispose">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.Dispose.html#C1_WPF_Maps_MapVirtualLayer_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_Dispose_System_Boolean_" data-uid="C1.WPF.Maps.MapVirtualLayer.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.Dispose.html#C1_WPF_Maps_MapVirtualLayer_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_ForceRefresh" data-uid="C1.WPF.Maps.MapVirtualLayer.ForceRefresh">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.ForceRefresh.html#C1_WPF_Maps_MapVirtualLayer_ForceRefresh">ForceRefresh()</a>
        </td>
        <td class="markdown level1 summary"><p>Forces this C1MapVirtualLayer to request all items again.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapVirtualLayer_OnApplyTemplate" data-uid="C1.WPF.Maps.MapVirtualLayer.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Maps.MapVirtualLayer.OnApplyTemplate.html#C1_WPF_Maps_MapVirtualLayer_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
