define style error RRS feed

  • Question

  • <Style x:Key="FormGridRowDefinitonStyle" TargetType="RowDefinition" >

            <Setter Property="Height" Value="40" />


    get this

    "Value does not fall within the expected range."

    Friday, December 5, 2014 8:16 AM


  • Hi,

    please try the code below to use style to define the height of the grid row, it works well:

            <GridLength x:Key="rowHeightVal">55</GridLength>
        <Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
                <RowDefinition Height ="{StaticResource rowHeightVal}"/>
                <RowDefinition Height="*"></RowDefinition>

    Best Regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Jonny_D Monday, December 15, 2014 2:00 AM
    Tuesday, December 9, 2014 3:25 AM