# C1.WPF.Maps.VectorLayer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Maps_VectorLayer" data-uid="C1.WPF.Maps.VectorLayer" class="text-break">VectorLayer Class
</h1>
  <div class="markdown level0 summary"><p>Represents map layer with the shapes, vectors or geometries in geographical coordinates.</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">VectorLayer</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_VectorLayer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[StyleTypedProperty(Property = &quot;ItemStyle&quot;, StyleTargetType = typeof(VectorItemBase))]
public class VectorLayer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IMapLayer, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;StyleTypedProperty(Property:=&quot;ItemStyle&quot;, StyleTargetType:=GetType(VectorItemBase))&gt;
Public Class VectorLayer
    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_VectorLayer__ctor" data-uid="C1.WPF.Maps.VectorLayer.#ctor">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.-ctor.html#C1_WPF_Maps_VectorLayer__ctor">VectorLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of C1VectorLayer object.</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_VectorLayer_ItemStyleProperty" data-uid="C1.WPF.Maps.VectorLayer.ItemStyleProperty">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemStyleProperty.html">ItemStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the ItemStyle dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_ItemTemplateProperty" data-uid="C1.WPF.Maps.VectorLayer.ItemTemplateProperty">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemTemplateProperty.html">ItemTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the ItemTemplate dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_ItemsSourceProperty" data-uid="C1.WPF.Maps.VectorLayer.ItemsSourceProperty">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemsSourceProperty.html">ItemsSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the ItemSource dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_UriSourceProperty" data-uid="C1.WPF.Maps.VectorLayer.UriSourceProperty">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.UriSourceProperty.html">UriSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the UriSource 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_VectorLayer_Children" data-uid="C1.WPF.Maps.VectorLayer.Children">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.Children.html#C1_WPF_Maps_VectorLayer_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of child elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_ItemStyle" data-uid="C1.WPF.Maps.VectorLayer.ItemStyle">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemStyle.html#C1_WPF_Maps_VectorLayer_ItemStyle">ItemStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_ItemTemplate" data-uid="C1.WPF.Maps.VectorLayer.ItemTemplate">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemTemplate.html#C1_WPF_Maps_VectorLayer_ItemTemplate">ItemTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item template. Item template should define
C1VectorItemBase object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_ItemsSource" data-uid="C1.WPF.Maps.VectorLayer.ItemsSource">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.ItemsSource.html#C1_WPF_Maps_VectorLayer_ItemsSource">ItemsSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the items source. The items should be collection of
C1VectorItemBase objects or ItemTemplate should define C1VectorItemBase
object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_LabelVisibility" data-uid="C1.WPF.Maps.VectorLayer.LabelVisibility">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.LabelVisibility.html#C1_WPF_Maps_VectorLayer_LabelVisibility">LabelVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the label visibility.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_MinSize" data-uid="C1.WPF.Maps.VectorLayer.MinSize">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.MinSize.html#C1_WPF_Maps_VectorLayer_MinSize">MinSize</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies minimal size at which element becomes visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_UriSource" data-uid="C1.WPF.Maps.VectorLayer.UriSource">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.UriSource.html#C1_WPF_Maps_VectorLayer_UriSource">UriSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the Uri of geographic data that would be shown.</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_VectorLayer_BeginUpdate" data-uid="C1.WPF.Maps.VectorLayer.BeginUpdate">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.BeginUpdate.html#C1_WPF_Maps_VectorLayer_BeginUpdate">BeginUpdate()</a>
        </td>
        <td class="markdown level1 summary"><p>Starts batch update.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_Dispose" data-uid="C1.WPF.Maps.VectorLayer.Dispose">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.Dispose.html#C1_WPF_Maps_VectorLayer_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Relesed unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_EndUpdate" data-uid="C1.WPF.Maps.VectorLayer.EndUpdate">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.EndUpdate.html#C1_WPF_Maps_VectorLayer_EndUpdate">EndUpdate()</a>
        </td>
        <td class="markdown level1 summary"><p>Finishes batch update.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_OnApplyTemplate" data-uid="C1.WPF.Maps.VectorLayer.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.OnApplyTemplate.html#C1_WPF_Maps_VectorLayer_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>The method is invoked during ApplyTemplate() call.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_VectorLayer_UriSourceFailed" data-uid="C1.WPF.Maps.VectorLayer.UriSourceFailed">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.UriSourceFailed.html">UriSourceFailed</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when the loading of UriSource failed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_VectorLayer_UriSourceLoaded" data-uid="C1.WPF.Maps.VectorLayer.UriSourceLoaded">
          <a class="xref" href="C1.WPF.Maps.VectorLayer.UriSourceLoaded.html">UriSourceLoaded</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when data from UriSource was loaded.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
