# C1.iOS.Core.C1Icon.OnBackgroundChanged

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_iOS_Core_C1Icon_OnBackgroundChanged_" data-uid="C1.iOS.Core.C1Icon.OnBackgroundChanged*">OnBackgroundChanged Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_iOS_Core_C1Icon_OnBackgroundChanged_" data-uid="C1.iOS.Core.C1Icon.OnBackgroundChanged*"></a>
<h4 id="C1_iOS_Core_C1Icon_OnBackgroundChanged_CoreAnimation_CALayer_CoreAnimation_CALayer_" data-uid="C1.iOS.Core.C1Icon.OnBackgroundChanged(CoreAnimation.CALayer,CoreAnimation.CALayer)">OnBackgroundChanged(CALayer, CALayer)</h4>
<div class="markdown level1 summary"><p>Called when the <a class="xref" href="C1.iOS.Core.C1View.BackgroundProperty.html">BackgroundProperty</a> is updated.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void OnBackgroundChanged(CALayer oldBrush, CALayer newBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub OnBackgroundChanged(oldBrush As CALayer, newBrush As CALayer)</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><span class="xref">CALayer</span></td>
      <td><span class="parametername">oldBrush</span></td>
      <td><p>The old brush.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">CALayer</span></td>
      <td><span class="parametername">newBrush</span></td>
      <td><p>The new brush.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
