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

DatePicker Height

1 Answer 18 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 14 Sep 2016, 02:31 PM

I can't seem to increase the height of the initial date picker box.  I tried using the obvious code below, but it doesn't seem to change the height.  Any ideas?

            datePicker.Height = 65;
            datePicker.MinHeight = 65;

 

Thanks
Simon

 

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 14 Sep 2016, 03:55 PM
Hi Simon,

You can set the height of the internal DatePickerButton by using it's Style. Here's an example:

First, define the namespaces you need:

xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input"
xmlns:datePickerButton="using:Telerik.UI.Xaml.Controls.Input.DateTimePickers"

Here is the RadDatePicker seen in the attached screenshot:

<telerikInput:RadDatePicker>
    <telerikInput:RadDatePicker.Resources>
        <Style TargetType="datePickerButton:DateTimePickerButton">
            <Setter Property="Height" Value="100" />
        </Style>
    </telerikInput:RadDatePicker.Resources>
</telerikInput:RadDatePicker>



Note that you can set other properties as well, see here for an example of setting the Font and brushes.

Let us know if you have any further questions or concerns.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
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
DatePicker
Asked by
Simon
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or