Class QuickInfoPopupDetails
Provides the appointment details and the edit, delete, and close actions for the quick info popup of the SfScheduler.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class QuickInfoPopupDetails : Object
Remarks
This class is used as the binding context of the QuickInfoTemplate. The SchedulerAppointment property provides the appointment for which the quick info popup is displayed, and the EditAppointment(), DeleteAppointment(), and ClosePopup() methods perform the same actions as the built-in quick info popup icons.
Examples
The below example shows, how to use the QuickInfoPopupDetails of the SfScheduler.
<scheduler:SfScheduler x:Name="Scheduler">
<scheduler:SfScheduler.QuickInfoTemplate>
<DataTemplate>
<Grid Padding="12"
RowDefinitions="Auto,Auto,Auto">
<Label Grid.Row="0"
FontSize="18"
FontAttributes="Bold"
Text="{Binding SchedulerAppointment.Subject}" />
<Label Grid.Row="1"
Text="{Binding SchedulerAppointment.StartTime}" />
<Button Grid.Row="2"
Text="Edit"
Clicked="OnEditClicked" />
</Grid>
</DataTemplate>
</scheduler:SfScheduler.QuickInfoTemplate>
</scheduler:SfScheduler>
private void OnEditClicked(object sender, EventArgs e)
{
if ((sender as BindableObject)?.BindingContext is QuickInfoPopupDetails details)
{
details.EditAppointment();
}
}
Properties
SchedulerAppointment
Gets the appointment for which the quick info popup is displayed.
Declaration
public SchedulerAppointment SchedulerAppointment { get; }
Property Value
| Type | Description |
|---|---|
| SchedulerAppointment | The SchedulerAppointment associated with the currently displayed quick info popup. |
Examples
The below example shows, how to use the SchedulerAppointment property of the QuickInfoPopupDetails.
<scheduler:SfScheduler.QuickInfoTemplate>
<DataTemplate>
<Label Text="{Binding SchedulerAppointment.Subject}" />
</DataTemplate>
</scheduler:SfScheduler.QuickInfoTemplate>
Methods
ClosePopup()
Closes the quick info popup.
Declaration
public void ClosePopup()
Remarks
This method closes the quick info popup, the same behavior as the built-in close icon of the quick info popup.
Examples
The below example shows, how to invoke the ClosePopup() method of the QuickInfoPopupDetails.
private void OnCloseButtonClicked(object sender, EventArgs e)
{
if (this.BindingContext is QuickInfoPopupDetails details)
{
details.ClosePopup();
}
}
DeleteAppointment()
Deletes the appointment associated with the quick info popup and closes the popup.
Declaration
public void DeleteAppointment()
Remarks
This method deletes the associated appointment, the same behavior as the built-in delete icon of the quick info popup. If the associated appointment is a recurring appointment, the recurrence edit mode selection popup is displayed when required.
Examples
The below example shows, how to invoke the DeleteAppointment() method of the QuickInfoPopupDetails.
private void OnDeleteButtonClicked(object sender, EventArgs e)
{
if (this.BindingContext is QuickInfoPopupDetails details)
{
details.DeleteAppointment();
}
}
EditAppointment()
Edits the appointment associated with the quick info popup.
Declaration
public void EditAppointment()
Remarks
This method opens the appointment editor for the associated appointment, the same behavior as the built-in edit icon of the quick info popup.
Examples
The below example shows, how to invoke the EditAppointment() method of the QuickInfoPopupDetails.
private void OnEditButtonClicked(object sender, EventArgs e)
{
if (this.BindingContext is QuickInfoPopupDetails details)
{
details.EditAppointment();
}
}