Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Bindable Height of RowDefinition

$
0
0

Hi!

Just want to clarify, is the Height property of RowDefinition supposed to be bindable or not? The documentation* states that it is a bindable property. I tried with the XAML below where TopRowHeight tested as int, float, double and GridLength. The getter is never called.

  • http://iosapi.xamarin.com/?link=T:Xamarin.Forms.RowDefinition/*

    <?xml version="1.0" encoding="UTF-8"?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
                 x:Class="AnimatedGrid.MainPage">
    
        <ContentPage.Content>
    
        <Grid>
    
            <Grid.RowDefinitions>
                <RowDefinition Height="{Binding TopRowHeight}" />
                <RowDefinition Height="*" />
                <RowDefinition Height="100" />
            </Grid.RowDefinitions>
    
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
    
    
            <BoxView BackgroundColor="Red" Grid.Row="0" />
            <BoxView BackgroundColor="Blue" Grid.Row="1" />
            <BoxView BackgroundColor="Yellow" Grid.Row="2" />
    
        </Grid>
    
        </ContentPage.Content>
    </ContentPage>
    

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>