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

On Platform Syntax XAML Issue with Global Styles

$
0
0

I am trying to setup a specific heightrequest for android only in my xamarin forms xaml code using onPlatform. When I specify the below Android works fine, but I dont want to specify a height for IOS as I am controlling this in my App.xaml file as a global style. For some reason when iOS is not specified here the global styles are not applied. I have read a few articles stating adding an IOS option with the value at -1, but it still doesnt show the global styles. Any ideas how I can resolve this issue?

        <Picker....>
                        <Picker.HeightRequest>
                            <OnPlatform x:TypeArguments="x:Double" >
                                <On Platform="Android" Value="30" />

                            </OnPlatform>
                        </Picker.HeightRequest>

                    </Picker>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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