Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Platform specific RowHeight not working in Xamarin.Forms.

$
0
0

I'm defining a list view as follows:

<ListView Grid.Row="0" Grid.Column="1" ItemsSource="{Binding MenuList}"
                          SelectedItem="{Binding SelectedEngine, Mode=TwoWay}" SeparatorVisibility="None">
    <ListView.RowHeight>
        <OnPlatform x:TypeArguments="x:Int32">
            <On Platform="Android">52</On>
            <On Platform="UWP">154</On>
        </OnPlatform>
         </ListView.RowHeight>
</ListView>

But I get an error message saying:

No property, bindable property, or event found for 'RowHeight', or mismatching type between value and property.

And if I drop the <ListView.RowHeight> out it compiles. Does anyone know how I can fix the issue?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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