Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Last active November 11, 2016 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/6638f2bd04daf72fd9050a7d8f138f38 to your computer and use it in GitHub Desktop.
Save jfversluis/6638f2bd04daf72fd9050a7d8f138f38 to your computer and use it in GitHub Desktop.
Code for embedding native controls in Xamarin.Forms
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:EmbedNativeAwesomeness"
xmlns:ios="clr-namespace:UIKit;assembly=Xamarin.iOS;targetPlatform=iOS"
x:Class="EmbedNativeAwesomeness.EmbedNativeAwesomenessPage">
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
<Label Text="Isn't this awesome?!" VerticalOptions="Center" HorizontalOptions="Center" />
<ios:UIDatePicker />
<ios:UISlider />
<ios:UIStepper />
<ios:UISwitch />
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment