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:
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?
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?