# C1.Util.DX.Animation.Timer.SetTimerEventHandler

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Animation_Timer_SetTimerEventHandler_" data-uid="C1.Util.DX.Animation.Timer.SetTimerEventHandler*">SetTimerEventHandler Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Animation_Timer_SetTimerEventHandler_" data-uid="C1.Util.DX.Animation.Timer.SetTimerEventHandler*"></a>
<h4 id="C1_Util_DX_Animation_Timer_SetTimerEventHandler_C1_Util_DX_Animation_Timer_UpdateDelegate_C1_Util_DX_Animation_Timer_UpdateDelegate_C1_Util_DX_Animation_Timer_RenderingTooSlowDelegate_" data-uid="C1.Util.DX.Animation.Timer.SetTimerEventHandler(C1.Util.DX.Animation.Timer.UpdateDelegate,C1.Util.DX.Animation.Timer.UpdateDelegate,C1.Util.DX.Animation.Timer.RenderingTooSlowDelegate)">SetTimerEventHandler(UpdateDelegate, UpdateDelegate, RenderingTooSlowDelegate)</h4>
<div class="markdown level1 summary"><p>Specifies a timer event handler.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTimerEventHandler(Timer.UpdateDelegate preUpdateHandler = null, Timer.UpdateDelegate postUpdateHandler = null, Timer.RenderingTooSlowDelegate renderingTooSlowHandler = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTimerEventHandler(Optional preUpdateHandler As Timer.UpdateDelegate = Nothing, Optional postUpdateHandler As Timer.UpdateDelegate = Nothing, Optional renderingTooSlowHandler As Timer.RenderingTooSlowDelegate = Nothing)</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="C1.Util.DX.Animation.Timer.html">Timer</a>.<a class="xref" href="C1.Util.DX.Animation.Timer.UpdateDelegate.html">UpdateDelegate</a></td>
      <td><span class="parametername">preUpdateHandler</span></td>
      <td><p>A delegate that handles events that occur before an animation update begins.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.Timer.html">Timer</a>.<a class="xref" href="C1.Util.DX.Animation.Timer.UpdateDelegate.html">UpdateDelegate</a></td>
      <td><span class="parametername">postUpdateHandler</span></td>
      <td><p>A delegate that handles events that occur after an animation update is finished.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.Timer.html">Timer</a>.<a class="xref" href="C1.Util.DX.Animation.Timer.RenderingTooSlowDelegate.html">RenderingTooSlowDelegate</a></td>
      <td><span class="parametername">renderingTooSlowHandler</span></td>
      <td><p>A delegate that handles events that occur when the rendering frame rate for an animation falls below a minimum desirable frame rate.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
