How to change navigation bar height of the radcalendar

2 posts, 0 answers
  1. Kian
    Kian avatar
    15 posts
    Member since:
    Sep 2010

    Posted 10 Oct 2010 Link to this post

    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.

  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 10 Oct 2010 Link to this post

    Hello Kian,

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

    After that In order to change the height of the CalendarNavigationElement you can do the following:
    radCalendar1.CalendarElement.CalendarNavigationElement.MinSize = new Size(
                    (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
Back to Top