# C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment*">NavigateToNextAppointment Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment">NavigateToNextAppointment()</h4>
<div class="markdown level1 summary"><p>Makes the nearest appointment after <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> visible in
the control UI.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool NavigateToNextAppointment()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NavigateToNextAppointment() As Boolean</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.boolean">bool</a></td>
      <td><p>This method returns a value indicating whether the requested appointment has
been found and made visible.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method sets the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedAppointment.html#C1_WPF_Schedule_C1Scheduler_SelectedAppointment">SelectedAppointment</a> property to the next appointment found
and the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> property to the start time of the appointment.
If the requested appointment has not been found, then the method changes nothing.</p>
<p>
This method implements the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointmentCommand.html">NavigateToNextAppointmentCommand</a>
command.
</p>
</div>


<a id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_C1_Schedule_BaseObject_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointment(C1.Schedule.BaseObject)">NavigateToNextAppointment(BaseObject)</h4>
<div class="markdown level1 summary"><p>Makes the nearest appointment after <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> visible in
the control UI.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool NavigateToNextAppointment(BaseObject owner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NavigateToNextAppointment(owner As BaseObject) As Boolean</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><span class="xref">BaseObject</span></td>
      <td><span class="parametername">owner</span></td>
      <td><p>An owner object determining the <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> to search through.</p>
</td>
    </tr>
  </tbody>
</table>
<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.boolean">bool</a></td>
      <td><p>This method returns a value indicating whether the requested appointment has
been found and made visible.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_NavigateToNextAppointment_C1_Schedule_BaseObject__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method sets the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedAppointment.html#C1_WPF_Schedule_C1Scheduler_SelectedAppointment">SelectedAppointment</a> property to the next appointment found
and the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> property to the start time of the appointment.
If the requested appointment has not been found, then the method changes nothing.</p>
<p>
This method implements the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.NavigateToNextAppointmentCommand.html">NavigateToNextAppointmentCommand</a>
command.
</p>
</div>
</div>
