# C1.WPF.Maps.MapTilesLayer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Maps_MapTilesLayer" data-uid="C1.WPF.Maps.MapTilesLayer" class="text-break">MapTilesLayer Class
</h1>
  <div class="markdown level0 summary"><p>A <a class="xref" href="C1.WPF.Maps.IRotatableMapLayer.html">IRotatableMapLayer</a> that displays map tiles from a <a class="xref" href="C1.WPF.Maps.MultiScaleTileSource.html">MultiScaleTileSource</a></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">MapTilesLayer</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.IRotatableMapLayer.html">IRotatableMapLayer</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_MapTilesLayer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Root&quot;, Type = typeof(Panel))]
public class MapTilesLayer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IRotatableMapLayer, IMapLayer, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Root&quot;, Type:=GetType(Panel))&gt;
Public Class MapTilesLayer
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IRotatableMapLayer, IMapLayer, IDisposable</code></pre>
  </div>
  <h5 id="C1_WPF_Maps_MapTilesLayer_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><a class="xref" href="C1.WPF.Maps.C1Maps.html">C1Maps</a> comes with a C1MapTilesLayer layer, so that it's not usually necessary to add a layer of this type.</p>
</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_MapTilesLayer__ctor" data-uid="C1.WPF.Maps.MapTilesLayer.#ctor">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.-ctor.html#C1_WPF_Maps_MapTilesLayer__ctor">MapTilesLayer()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Maps.MapTilesLayer.html">MapTilesLayer</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_MapTilesLayer_SourceProperty" data-uid="C1.WPF.Maps.MapTilesLayer.SourceProperty">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.SourceProperty.html">SourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Maps.MapTilesLayer.Source.html#C1_WPF_Maps_MapTilesLayer_Source">Source</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_MapTilesLayer_FadeInTiles" data-uid="C1.WPF.Maps.MapTilesLayer.FadeInTiles">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.FadeInTiles.html#C1_WPF_Maps_MapTilesLayer_FadeInTiles">FadeInTiles</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether tiles fade in on load. This property can only be used with the native tiles mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapTilesLayer_IsDisposed" data-uid="C1.WPF.Maps.MapTilesLayer.IsDisposed">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.IsDisposed.html#C1_WPF_Maps_MapTilesLayer_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_MapTilesLayer_Source" data-uid="C1.WPF.Maps.MapTilesLayer.Source">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.Source.html#C1_WPF_Maps_MapTilesLayer_Source">Source</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.Maps.MultiScaleTileSource.html">MultiScaleTileSource</a> used as source for this map tiles.</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_MapTilesLayer_Dispose" data-uid="C1.WPF.Maps.MapTilesLayer.Dispose">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.Dispose.html#C1_WPF_Maps_MapTilesLayer_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapTilesLayer_Dispose_System_Boolean_" data-uid="C1.WPF.Maps.MapTilesLayer.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.Dispose.html#C1_WPF_Maps_MapTilesLayer_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapTilesLayer_GetRotatableElements" data-uid="C1.WPF.Maps.MapTilesLayer.GetRotatableElements">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.GetRotatableElements.html#C1_WPF_Maps_MapTilesLayer_GetRotatableElements">GetRotatableElements()</a>
        </td>
        <td class="markdown level1 summary"><p>Get the list of rotatable elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Maps_MapTilesLayer_OnApplyTemplate" data-uid="C1.WPF.Maps.MapTilesLayer.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.OnApplyTemplate.html#C1_WPF_Maps_MapTilesLayer_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></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_MapTilesLayer_TilesLoadProgress" data-uid="C1.WPF.Maps.MapTilesLayer.TilesLoadProgress">
          <a class="xref" href="C1.WPF.Maps.MapTilesLayer.TilesLoadProgress.html">TilesLoadProgress</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when the number of tiles that need to be loaded changes. Only fires when using native tiles mode.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
