# C1.WPF.Tile.C1Tile.OnContentChanged

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Tile_C1Tile_OnContentChanged_" data-uid="C1.WPF.Tile.C1Tile.OnContentChanged*">OnContentChanged Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Tile_C1Tile_OnContentChanged_" data-uid="C1.WPF.Tile.C1Tile.OnContentChanged*"></a>
<h4 id="C1_WPF_Tile_C1Tile_OnContentChanged_System_Object_System_Object_" data-uid="C1.WPF.Tile.C1Tile.OnContentChanged(System.Object,System.Object)">OnContentChanged(object, object)</h4>
<div class="markdown level1 summary"><p>Called when the Content property changes.
This implementation performs next actions:</p>
<ul>
<li>places old content into the BackContentPresenter element,</li>
<li>updates ContentPresenter element with new content,</li>
<li>updates ContentTemplate if BackContentTemplate or ContentTemplateSelector property is set,</li>
<li>runs tile update animation.</li>
</ul>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void OnContentChanged(object oldContent, object newContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnContentChanged(oldContent As Object, newContent As Object)</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.object">object</a></td>
      <td><span class="parametername">oldContent</span></td>
      <td><p>The old value of the Content property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">newContent</span></td>
      <td><p>The new value of the Content property.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
