Class AppointmentToolTipSettings
Represents the settings for appointment tooltips in Scheduler.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class AppointmentToolTipSettings : Element, IThemeElement
Constructors
AppointmentToolTipSettings()
Initializes a new instance of the AppointmentToolTipSettings class.
Declaration
public AppointmentToolTipSettings()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for Background dependency property. |
PaddingProperty
Identifies the Padding dependency property.
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for Padding dependency property. |
TextStyleProperty
Identifies the TextStyle dependency property.
Declaration
public static readonly BindableProperty TextStyleProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for TextStyle dependency property. |
ToolTipPositionProperty
Identifies the ToolTipPosition dependency property.
Declaration
public static readonly BindableProperty ToolTipPositionProperty
Field Value
| Type | Description |
|---|---|
| Microsoft.Maui.Controls.BindableProperty | The identifier for ToolTipPosition dependency property. |
Properties
Background
Gets or sets the background color of the appointment tooltip.
Declaration
public Brush Background { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
Examples
The below examples shows, how to set the Background for the appointment tooltip.
<schedule:SfScheduler x:Name="Scheduler">
<schedule:SfScheduler.AppointmentToolTipSettings>
<schedule:AppointmentToolTipSettings Background="#1C1B1F" />
</schedule:SfScheduler.AppointmentToolTipSettings>
</schedule:SfScheduler>
#C#
this.Scheduler.AppointmentToolTipSettings = new AppointmentToolTipSettings
{
Background = new SolidColorBrush(Color.FromArgb("#1C1B1F"))
};
Padding
Gets or sets the padding for the tooltip content.
Declaration
public Thickness Padding { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Thickness |
Examples
The below examples show how to set the Padding for the appointment tooltip.
<schedule:SfScheduler x:Name="Scheduler">
<schedule:SfScheduler.AppointmentToolTipSettings>
<schedule:AppointmentToolTipSettings Padding="12,8,12,8" />
</schedule:SfScheduler.AppointmentToolTipSettings>
</schedule:SfScheduler>
#C#
this.Scheduler.AppointmentToolTipSettings = new AppointmentToolTipSettings
{
Padding = new Thickness(12, 8, 12, 8)
};
TextStyle
Gets or sets the text style applied to the tooltip content.
Declaration
public SchedulerTextStyle TextStyle { get; set; }
Property Value
| Type |
|---|
| SchedulerTextStyle |
Examples
The below examples shows, how to set the TextStyle for appointment tooltip content.
<schedule:SfScheduler x:Name="Scheduler">
<schedule:SfScheduler.AppointmentToolTipSettings>
<schedule:AppointmentToolTipSettings>
<schedule:AppointmentToolTipSettings.TextStyle>
<schedule:SchedulerTextStyle TextColor="#F4EFF4" FontSize="14" />
</schedule:AppointmentToolTipSettings.TextStyle>
</schedule:AppointmentToolTipSettings>
</schedule:SfScheduler.AppointmentToolTipSettings>
</schedule:SfScheduler>
#C#
this.Scheduler.AppointmentToolTipSettings = new AppointmentToolTipSettings
{
TextStyle = new SchedulerTextStyle { TextColor = Color.FromArgb("#F4EFF4"), FontSize = 14 }
};
ToolTipPosition
Gets or sets the position of the tooltip relative to the appointment.
Declaration
public SchedulerToolTipPosition ToolTipPosition { get; set; }
Property Value
| Type |
|---|
| SchedulerToolTipPosition |
Examples
The below examples shows, how to set the ToolTipPosition for the appointment tooltip.
<schedule:SfScheduler x:Name="Scheduler">
<schedule:SfScheduler.AppointmentToolTipSettings>
<schedule:AppointmentToolTipSettings ToolTipPosition="Top" />
</schedule:SfScheduler.AppointmentToolTipSettings>
</schedule:SfScheduler>
#C#
this.Scheduler.AppointmentToolTipSettings = new AppointmentToolTipSettings
{
ToolTipPosition = SchedulerToolTipPosition.Top
};