# C1.Framework.XView.OnInvalidated

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_XView_OnInvalidated_" data-uid="C1.Framework.XView.OnInvalidated*">OnInvalidated Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_XView_OnInvalidated_" data-uid="C1.Framework.XView.OnInvalidated*"></a>
<h4 id="C1_Framework_XView_OnInvalidated_System_Windows_Forms_InvalidateEventArgs_" data-uid="C1.Framework.XView.OnInvalidated(System.Windows.Forms.InvalidateEventArgs)">OnInvalidated(InvalidateEventArgs)</h4>
<div class="markdown level1 summary"><p>Remove hosted controls that belong to elements which became invisible or
belong to a different control now.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void OnInvalidated(InvalidateEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnInvalidated(e As InvalidateEventArgs)</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.windows.forms.invalidateeventargs">InvalidateEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.invalidateeventargs">InvalidateEventArgs</a> that contains the event data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Framework.ScrollableControl.OnInvalidated.html#C1_Framework_ScrollableControl_OnInvalidated_System_Windows_Forms_InvalidateEventArgs_">ScrollableControl.OnInvalidated(InvalidateEventArgs)</a></div>
<h5 id="C1_Framework_XView_OnInvalidated_System_Windows_Forms_InvalidateEventArgs__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The host element is responsible for restoring the control's Parent property
when it updates its position.</p>
<p>Note: <a class="xref" href="C1.Framework.XView.html">XView</a> determines that a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>belongs to an 
<span class="xref">C1.Framework.XView.Element</span> if the control's <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.tag">Tag</a> property contains 
a reference to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> object.</p>
</div>
</div>
