# C1.Util.DX.Animation.Storyboard2.SetStoryboardEventHandler

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Animation_Storyboard2_SetStoryboardEventHandler_" data-uid="C1.Util.DX.Animation.Storyboard2.SetStoryboardEventHandler*">SetStoryboardEventHandler Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Animation_Storyboard2_SetStoryboardEventHandler_" data-uid="C1.Util.DX.Animation.Storyboard2.SetStoryboardEventHandler*"></a>
<h4 id="C1_Util_DX_Animation_Storyboard2_SetStoryboardEventHandler_C1_Util_DX_Animation_Storyboard2_StoryboardStatusChangedDelegate_C1_Util_DX_Animation_Storyboard2_StoryboardUpdatedDelegate_System_Boolean_System_Boolean_" data-uid="C1.Util.DX.Animation.Storyboard2.SetStoryboardEventHandler(C1.Util.DX.Animation.Storyboard2.StoryboardStatusChangedDelegate,C1.Util.DX.Animation.Storyboard2.StoryboardUpdatedDelegate,System.Boolean,System.Boolean)">SetStoryboardEventHandler(StoryboardStatusChangedDelegate, StoryboardUpdatedDelegate, bool, bool)</h4>
<div class="markdown level1 summary"><p>Specifies a handler for storyboard events.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetStoryboardEventHandler(Storyboard2.StoryboardStatusChangedDelegate statusChangedHandler = null, Storyboard2.StoryboardUpdatedDelegate updatedHandler = null, bool fRegisterStatusChangeForNextAnimationEvent = false, bool fRegisterUpdateForNextAnimationEvent = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetStoryboardEventHandler(Optional statusChangedHandler As Storyboard2.StoryboardStatusChangedDelegate = Nothing, Optional updatedHandler As Storyboard2.StoryboardUpdatedDelegate = Nothing, Optional fRegisterStatusChangeForNextAnimationEvent As Boolean = False, Optional fRegisterUpdateForNextAnimationEvent As Boolean = False)</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.Storyboard2.html">Storyboard2</a>.<a class="xref" href="C1.Util.DX.Animation.Storyboard2.StoryboardStatusChangedDelegate.html">StoryboardStatusChangedDelegate</a></td>
      <td><span class="parametername">statusChangedHandler</span></td>
      <td><p>A delegate that handles storyboard status change events.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.Storyboard2.html">Storyboard2</a>.<a class="xref" href="C1.Util.DX.Animation.Storyboard2.StoryboardUpdatedDelegate.html">StoryboardUpdatedDelegate</a></td>
      <td><span class="parametername">updatedHandler</span></td>
      <td><p>A delegate that handles storyboard update events.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fRegisterStatusChangeForNextAnimationEvent</span></td>
      <td><p>If TRUE, registers the OnStoryboardStatusChanged event and includes those events in IUIAnimationManager2::EstimateNextEventTime, which estimates the time interval until the next animation event.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fRegisterUpdateForNextAnimationEvent</span></td>
      <td><p>If TRUE, registers the OnStoryboardUpdated event and includes those events in IUIAnimationManager2::EstimateNextEventTime, which estimates the time interval until the next animation event.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
