# C1.Win.Schedule.C1Schedule.BeforeViewChange

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_Schedule_C1Schedule_BeforeViewChange" data-uid="C1.Win.Schedule.C1Schedule.BeforeViewChange" class="text-break">BeforeViewChange Event
</h1>
<div class="markdown level0 summary"><p>Fired before the <a class="xref" href="C1.Win.Schedule.C1Schedule.ViewType.html#C1_Win_Schedule_C1Schedule_ViewType">ViewType</a> property change.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Schedule.html">C1.Win.Schedule</a></h6>
<h6><strong>Assembly</strong>: C1.Win.Schedule.10.dll</h6>
<h5 id="C1_Win_Schedule_C1Schedule_BeforeViewChange_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;BeforeViewChange&quot;, &quot;Fired before the view type is changed.&quot;)]
[C1Category(&quot;UI&quot;)]
public event EventHandler&lt;BeforeViewChangeEventArgs&gt; BeforeViewChange</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;BeforeViewChange&quot;, &quot;Fired before the view type is changed.&quot;)&gt;
&lt;C1Category(&quot;UI&quot;)&gt;
Public Event BeforeViewChange As EventHandler(Of BeforeViewChangeEventArgs)</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="C1.Win.Schedule.BeforeViewChangeEventArgs.html">BeforeViewChangeEventArgs</a>&gt;</td>
      <td>Fired before the  property change.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Schedule_C1Schedule_BeforeViewChange_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Change BeforeViewChangeEventArgs properties to cancel action, to set other
view type or to set other range of dates.</p>
</div>
</div>
