--- name: Xamarin.Forms - Native Embedding description: "How to add platform-specific controls to a Xamarin.Forms layout, and includes how to override the layout of custom controls (UI)" page_type: sample languages: - csharp products: - xamarin extensions: tags: - ui urlFragment: userinterface-nativeembedding --- # Native Embedding This sample demonstrates how to add platform-specific controls to a Xamarin.Forms layout, and includes how to override the layout of custom controls in order to correct their measurement API usage. For more information about this sample see [Native Embedding](https://docs.microsoft.com/xamarin/xamarin-forms/platform/native-views/). ![Native Embedding application screenshot](Screenshots/01All.png "Native Embedding application screenshot")