This is a migrated thread and some comments may be shown as answers.

how to set dayview item text size on adroid?

1 Answer 55 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 13 Nov 2017, 12:18 PM

Hey guys,

I'm having an issue setting the dayview (day) schedule item text size on android (on xamarin.forms)?

im currently using the 'calendar_NativeControlLoaded' event to set the style.

i've tried all styles but nothing seems to work as follows:

     var cald = (sender as RadCalendar);

                        cald.AppointmentsStyle = new CalendarAppointmentsStyle
                        {
                            DisplayMode = AppointmentDisplayMode.Shape,
                            Padding = new Thickness(1, 2, 1, 2),
                            MaxCount = 5,
                            Spacing = 2,
                            ShapesHorizontalLocation = HorizontalLocation.Center,
                            ShapesVerticalLocation = VerticalLocation.Bottom,
                            ShapesOrientation = Orientation.Horizontal,
                            ShapeSize = new Size(5,5),
                            ShapeType = CalendarAppointmentShapeType.Ellipse,
                            FontSize = 8d,
                        };
                       

                        cald.DayViewStyle = new DayViewStyle
                        {
                            TimelineLabelsFontSize=10,
                            AppointmentFontSize = 10,
                            AppointmentDetailsFontSize = 10,
                            
                        };

                        var calStyle = new CalendarCellStyle { FontSize = 10 };
                        cald.TitleCellStyle = calStyle;
                        cald.DayCellStyle = calStyle;                    
                        cald.TodayCellStyle = calStyle;

                        cald.SelectedCellStyle = new CalendarCellStyle { FontSize=10};

 

I'm using the 1103 version of telerik and the latest xamarin forms versions.

regards
Steve

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 16 Nov 2017, 10:53 AM
Hi, Steve,

I have tested setting the DayViewStyle's AppointmentFontSize and it is correctly applied to the appointments when in DayView mode. Can you provide an example that shows your exact scenario as the styling mechanism seems to work correctly in the sample I am testing with?

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
steve
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or