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

Xamarin.forms OnPlatfom

$
0
0

Hi i would like to do something like this:

    <StackLayout Padding="15,0">
        <OnPlatform x:TypeArgumets="View">
              <On Platform="iOS">
        <Label Text="ios label" />
      </On>
              <On Platform="Android">
        <Label Text="android label" />
     </On>
        </OnPlatform>
  </StackLayout>

Is there any TypeArguments which allows me to add custom elements for each platform?
thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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