locked
define style error RRS feed

  • Question

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

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

        </Style>

    get this

    "Value does not fall within the expected range."

    Friday, December 5, 2014 8:16 AM

Answers

  • Hi,

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

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

    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