Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

IOS Calendar Custom Cell and event renderer

$
0
0

Hi Again,

 So I was able to get fairly close last night.  Attached is what my IOS version currently looks like:

 This is very close to what I want.  I'd like to try and move it so the events render in the bottom left hand corner of the cell, similarly to how it is on the Android version from the post above.  It would be nice if I could shift the Date text in each cell a little bit as well to create more spacing, however that isn't quite as important.  

 

I've tried using:  dayCell.Style.EventAlignment = TKCalendarCellAlignment.Bottom

 

However, that doesn't seem to have any effect.  Any advice on either of those two issues?  Also is the way I reduced the size of the date text a good way to do it?  I figured taking its current size and just reducing it by a percentage was a good bet.

 

Thanks for any help

 

publicoverridevoidUpdateVisualsForCell (TKCalendar calendar, TKCalendarCell cell)
        {
            if(cell isTKCalendarDayCell) {
                TKCalendarDayCell dayCell = (TKCalendarDayCell)cell;
                dayCell.Style.DisplayEventsAsText = true;
                dayCell.Style.TextFont= dayCell.Style.TextFont.WithSize (dayCell.Style.TextFont.PointSize * .7f);
            }
        }

Viewing all articles
Browse latest Browse all 94857

Trending Articles