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

DatePicker Resize problem

1 Answer 97 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Ronald Evers
Top achievements
Rank 1
Ronald Evers asked on 02 Nov 2010, 12:01 PM
Good day,

I'm having some issues with the DatePicker and I'm really stuck. When I try and give the datepicker a height of 22 the button on the right that shows the date dropdown doesn't stretch. No matter what height I give the control the button will always stay the same height while the control itself does resize. This causes half of the button to dissapear when give the DatePicker a height of 22. Thing is, I've made a test solution outside of the solution I'm trying to implement the DatePicker in and it works fine. For example, I made 2 different xaml controls in the different solutions and the code is identical and as follows:

<UserControl x:Class="DateBoxTest.MainPage"
    xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    mc:Ignorable="d"
    d:DesignHeight="200" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
        <my:RadDatePicker />
    </Grid>
</UserControl>

Extremely basic. See the attached image for a visual example of what happens. In the test solution it works fine and the button stretches, so if I give it a height of 22 it fits perfectly. In the other solution it doesn't.
Now I realise that I must be doing something wrong in the solution I'm trying to implement the datepicker. However I can't for the life of me figure out what. Is there anything that can cause this kind of behavior that I should look for in the solution where it's nor working?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kaloyan
Telerik team
answered on 05 Nov 2010, 08:28 AM
Hello Ronald Evers,

As a first step you can check if any implicit style is applied to the button itself. Also can you isolate the problem in a small separate solution and send us.

Best wishes,
Kaloyan
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
DatePicker
Asked by
Ronald Evers
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or