Skip to content

Commit ddea61b

Browse files
Merge pull request #296 from syncfusion-content/XAMARINANDROID-3933-InlineAppointmentTextSize-UG-for-Xamarin-android
XAMARINANDROID-3933-InlineApppointmentTextSize UG
2 parents 6f06434 + be2d232 commit ddea61b

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed

xamarin-android/SfCalendar/Populating-Events.md

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ N> The Inline function will be available only in MonthView with Single selection
3434

3535
## Adding events using Collection
3636

37-
Calendar Events collection can be provided to `SfCalendar` using the following steps. [CalendarEventCollection](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.InlineEventToggledEventArgs.html#Com_Syncfusion_Calendar_InlineEventToggledEventArgs_CalendarEventCollection) is a class, which holds the details about the events to be rendered in `SfCalendar`.
37+
Calendar Events collection can be provided to `SfCalendar` by following these steps. The [CalendarEventCollection](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.InlineEventToggledEventArgs.html#Com_Syncfusion_Calendar_InlineEventToggledEventArgs_CalendarEventCollection) is a class, which holds the details about the events to be rendered in `SfCalendar`.
3838

3939
[CalendarInlineEvent](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.InlineItemTappedEventArgs.html#Com_Syncfusion_Calendar_InlineItemTappedEventArgs_InlineEvent) has some basic properties such as [StartTime](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.CalendarInlineEvent.html#Com_Syncfusion_Calendar_CalendarInlineEvent_StartTime), [EndTime](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.CalendarInlineEvent.html#Com_Syncfusion_Calendar_CalendarInlineEvent_EndTime), [Subject](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.CalendarInlineEvent.html#Com_Syncfusion_Calendar_CalendarInlineEvent_Subject) and [Color](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.CalendarInlineEvent.html#Com_Syncfusion_Calendar_CalendarInlineEvent_Color)
4040

@@ -119,8 +119,61 @@ Inline view mode
119119

120120
Agenda view mode
121121

122-
![Calendar Inline Events](images/Xamarin.Android-Calendar-Agendaitemcustomview.png)
123-
122+
![Calendar Inline Events](images/Xamarin.Android-Calendar-Agendaitemcustomview.png)
123+
124+
### InlineAppointmentTextSize
125+
126+
By using the [InlineAppointmentTextSize](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.MonthViewSettings.html#Com_Syncfusion_Calendar_MonthViewSettings_InlineAppointmentTextSize) property from the [MonthViewSettings](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.MonthViewSettings.html) class of `SfCalendar` control, you can customize the text size for the appointment details text in inline and agenda view.
127+
128+
The following code explains how to customize the InlineAppointmentTextSize in Calendar InlineView.
129+
130+
{% highlight c# %}
131+
132+
SfCalendar sfCalendar = new SfCalendar(this);
133+
sfCalendar.MonthViewSettings.InlineAppointmentTextSize = 20;
134+
sfCalendar.ShowEventsInline = true;
135+
sfCalendar.InlineViewMode = InlineViewMode.Inline;
136+
137+
{% endhighlight %}
138+
139+
The following code explains how to customize the InlineAppointmentTextSize in Calendar AgendaView.
140+
141+
{% highlight c# %}
142+
143+
SfCalendar sfCalendar = new SfCalendar(this);
144+
sfCalendar.MonthViewSettings.InlineAppointmentTextSize = 20;
145+
sfCalendar.InlineViewMode = InlineViewMode.Agenda;
146+
sfCalendar.ShowEventsInline = true;
147+
148+
{% endhighlight %}
149+
150+
### InlineAppointmentTimeTextSize
151+
152+
By using the [InlineAppointmentTimeTextSize](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.MonthViewSettings.html#Com_Syncfusion_Calendar_MonthViewSettings_InlineAppointmentTimeTextSize) property from the [MonthViewSettings](https://help.syncfusion.com/cr/xamarin-android/Com.Syncfusion.Calendar.MonthViewSettings.html) class of `SfCalendar` control, you can customize the time text size for the appointment details time in both inline and agenda view.
153+
154+
The following code explains how to customize the InlineAppointmentTimeTextSize in Calendar InlineView.
155+
156+
{% highlight c# %}
157+
158+
SfCalendar sfCalendar = new SfCalendar(this);
159+
sfCalendar.MonthViewSettings.InlineAppointmentTimeTextSize = 20;
160+
sfCalendar.ShowEventsInline = true;
161+
sfCalendar.InlineViewMode = InlineViewMode.Inline;
162+
163+
{% endhighlight %}
164+
165+
166+
The following code explains how to customize the InlineAppointmentTimeTextSize in Calendar AgendaView.
167+
168+
{% highlight c# %}
169+
170+
SfCalendar sfCalendar = new SfCalendar(this);
171+
sfCalendar.MonthViewSettings.InlineAppointmentTimeTextSize = 20;
172+
sfCalendar.InlineViewMode = InlineViewMode.Agenda;
173+
sfCalendar.ShowEventsInline = true;
174+
175+
{% endhighlight %}
176+
124177
## Getting inline/agenda view appointment details
125178

126179
Using `InlineEvent` property from the `InlineItemTappedEventArgs` argument of `InlineItemTapped` event, you can get the month inline/agenda appointments details while tapping the specific appointment in inline/agenda view.

0 commit comments

Comments
 (0)