# C1.WPF.Schedule.C1Scheduler.UserAddingAppointment

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Schedule_C1Scheduler_UserAddingAppointment" data-uid="C1.WPF.Schedule.C1Scheduler.UserAddingAppointment" class="text-break">UserAddingAppointment Event
</h1>
<div class="markdown level0 summary"><p>Occurs before the Edit Appointment dialog appears on the screen as a result of:</p>
<ul><li>
a double-click on the control area in one of the default control views,
</li><li>
the NewAppointmentDialog method call, 
</li><li>
a <a class="xref" href="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialogCommand.html">NewAppointmentDialogCommand</a> command.
</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.4.6.2.dll</h6>
<h5 id="C1_WPF_Schedule_C1Scheduler_UserAddingAppointment_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;AddingAppointmentEventArgs&gt; UserAddingAppointment</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event UserAddingAppointment As EventHandler(Of AddingAppointmentEventArgs)</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.AddingAppointmentEventArgs.html">AddingAppointmentEventArgs</a>&gt;</td>
      <td>Occurs before the Edit Appointment dialog appears on the screen as a result of:  a double-click on the control area in one of the default control views,  the NewAppointmentDialog method call,   a  command.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_UserAddingAppointment_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Use this event to make custom settings to a new appointment before it
appears on the screen and/or to implement your own reaction on this event, instead
of activating a standard dialog window.</p>
<p>
In order to change appointment properties before showing the dialog on a screen,
use the appointment object referenced by the e.Appointment event argument.
</p><p>
To prevent activating a standard dialog window, set the e.Handled event argument to True.
</p>
</div>
</div>
