in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How do you set the fontsize on C1DatePicker?

Last post 04-22-2008 8:52 AM by C1_BernardoC. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-10-2008 11:28 PM

    How do you set the fontsize on C1DatePicker?

    I do not seem to find a FontSize property and Xaml does not accept it either.

    Thanks
    David

  • 04-22-2008 8:52 AM In reply to

    Re: How do you set the fontsize on C1DatePicker?

    The C1DatePicker inherits from the C1Button and exposes a C1MonthCalendar (Calendar property).

    You can set the font properties on the main control as usual:

      c1DatePicker.TextBlock.FontSize = xxx;

    Another option would be to change the C1ControlBase.DefaultFontSize property before creating the control:

      C1ControlBase.DefaultFontSize = 10;
      c1DatePicker = new C1DatePicker();

    I hope this helps.

     

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.