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

Using VerticalAlignment Stretch with RadCalendar in Grid

1 Answer 40 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lindsey
Top achievements
Rank 1
Lindsey asked on 18 Oct 2013, 08:07 PM
I am having difficulty fitting the calendar control to occupy the full height of my Grid cell. I've created a simple sample page with little else on it, and even so, the calendar is overextending the cell by 31 pixels below the bottom border. I've attached a code sample and a screenshot.
    
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
 
    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel Grid.Row="0" Margin="12,17,0,28">
        <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
        <TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
    </StackPanel>
 
    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Controls:RadCalendar VerticalAlignment="Stretch" />
    </Grid>
</Grid>


1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Oct 2013, 08:14 AM
Hi Lindsey,

Thank you for your interest in RadCalendar.

The reason RadCalendar looks like this is that we tried to follow the native calendar experience in Windows Phone. If you need to change the height of the calendar so that it follows the design of your application, you can set its Height property explicitely and the calendar will expand to fit the whole space:

<telerikInput:RadCalendar Height="600" />

Let us know if you need further assistance.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Calendar
Asked by
Lindsey
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or