# C1.WPF.Schedule.C1Scheduler.BeforeViewChange

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Schedule_C1Scheduler_BeforeViewChange" data-uid="C1.WPF.Schedule.C1Scheduler.BeforeViewChange" class="text-break">BeforeViewChange Event
</h1>
<div class="markdown level0 summary"><p>Occurs immediately before the next actions:</p>
<ul><li><span class="term"></span>When range of visible dates 
is changed by the associated calendar control.</li><li><span class="term"></span>When view type is changed by the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.ViewType.html#C1_WPF_Schedule_C1Scheduler_ViewType">ViewType</a> property change.</li><li><span class="term"></span>When range of visible dates and(or) 
view type is changed by the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> commands.
</li></ul>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.Schedule.dll</h6>
<h5 id="C1_WPF_Schedule_C1Scheduler_BeforeViewChange_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;BeforeViewChangeEventArgs&gt; BeforeViewChange</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">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.WPF.Schedule.BeforeViewChangeEventArgs.html">BeforeViewChangeEventArgs</a>&gt;</td>
      <td>Occurs immediately before the next actions: When range of visible dates  is changed by the associated calendar control.When view type is changed by the  property change.When range of visible dates and(or)  view type is changed by the  commands.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_BeforeViewChange_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Use this event to cancel action, to set other
view type or to set other range of dates.</p>
</div>
</div>
