# C1.WinUI.Calendar.C1Calendar.OnSelectionChanging

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_Calendar_C1Calendar_OnSelectionChanging_" data-uid="C1.WinUI.Calendar.C1Calendar.OnSelectionChanging*">OnSelectionChanging Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_Calendar_C1Calendar_OnSelectionChanging_" data-uid="C1.WinUI.Calendar.C1Calendar.OnSelectionChanging*"></a>
<h4 id="C1_WinUI_Calendar_C1Calendar_OnSelectionChanging_C1_WinUI_Calendar_CalendarSelectionChangingEventArgs_" data-uid="C1.WinUI.Calendar.C1Calendar.OnSelectionChanging(C1.WinUI.Calendar.CalendarSelectionChangingEventArgs)">OnSelectionChanging(CalendarSelectionChangingEventArgs)</h4>
<div class="markdown level1 summary"><p>Raises the <span class="xref">SelectionChanging</span> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void OnSelectionChanging(CalendarSelectionChangingEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub OnSelectionChanging(e As CalendarSelectionChangingEventArgs)</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.WinUI.Calendar.CalendarSelectionChangingEventArgs.html">CalendarSelectionChangingEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
