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

How to change navigation bar height of the radcalendar

1 Answer 131 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Kian
Top achievements
Rank 1
Kian asked on 10 Oct 2010, 07:41 PM
Dear Admin,

I need to change the height of navigation bar property of the calendar. Also, I need to change the navigation bar images.
I program an application that will be used in a touch screen computer. So, I have to change the size of navigation bar and its images.

Could you please help me?

Thank you in advanced.

Best regards.

Kian

1 Answer, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 10 Oct 2010, 10:42 PM
Hello Kian,

First, because you want to scale the calendar you should use Scale, like this:
var scaleFactor = new SizeF(1.6f, 1.6f);
radCalendar1.Scale(scaleFactor);

After that In order to change the height of the CalendarNavigationElement you can do the following:
radCalendar1.CalendarElement.CalendarNavigationElement.MinSize = new Size(
                0,
                (int)(radCalendar1.CalendarElement.CalendarNavigationElement.Size.Height * scaleFactor.Height));

In order to access the NextButton, PreviousButton, FastBackwardButton, FastForwardButton you should use the CalendarNavigationElement, like:
radCalendar1.CalendarElement.CalendarNavigationElement.NextButton.Image = null;
radCalendar1.CalendarElement.CalendarNavigationElement.PreviousButton.Image = null;
radCalendar1.CalendarElement.CalendarNavigationElement.FastBackwardButton.Image = null;
radCalendar1.CalendarElement.CalendarNavigationElement.FastForwardButton.Image = null;

And if you need more information on this topic, please take a look at this help page.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Kian
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or