Using VerticalAlignment Stretch with RadCalendar in Grid

2 posts, 0 answers
  1. Lindsey
    Lindsey avatar
    1 posts
    Member since:
    Oct 2013

    Posted 18 Oct 2013 Link to this post

    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>


  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 23 Oct 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top