Introduction
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows Phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows Phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
Frame
- HasShadow. = true or false, to indicate whether to show a shadow effect where the platform supports it.
- OutlineColor = A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red.

Prerequisites
- Visual Studio 2017(Windows or Mac)
The steps given below are required to be followed in order to use Border Shadow effect Using Frame Renderer in your controls in Xamarin.Forms, using Visual Studio.
Setting up a Xamarin.Forms Project
Start by creating a new Xamarin.Forms project. You’ll learn more by going through the steps yourself. Choose the Xamarin.Forms App Project type under Cross-platform/App in the New Project dialog.
Setting up a Xamarin.Forms Project
Start by creating a new Xamarin.Forms project. You’ll learn more by going through the steps yourself. Choose the Xamarin.Forms App Project type under Cross-platform/App in the New Project dialog.

Name your app, select “Use Portable Class Library” for shared code, and target both Android and iOS.
You probably want your project and solution to use the same name as your app. Put it in your preferred folder for projects and click Create.
You now have a basic Xamarin.Forms app. Click the play button to try it out.
Creating Your Model(ListValue)

ListValue.cs
- using System;
- namespace XamarinForms_Frame {
- public class ListValue {
- public string Title {
- get;
- set;
- }
- public string Content {
- get;
- set;
- }
- }
- }
Setting up the User Interface.

Go MainPage.Xaml and write following code.
MainPage.Xaml
- <?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:XamarinForms_Frame" x:Class="XamarinForms_Frame.XamarinForms_FramePage">
- <Label Text="Welcome to Xamarin Forms!" VerticalOptions="Center" HorizontalOptions="Center" />
- <ContentView>
- <StackLayout Margin="50" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand">
- <ListView x:Name="lstValue" HorizontalOptions="Center" VerticalOptions="Center" Margin="10,10,10,0" SeparatorVisibility="None">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <StackLayout>
- <Label Text="{Binding Title}"></Label> </StackLayout>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackLayout>
- </ContentView>
- </ContentPage>
In this Step Add Data to Listview.
MainPage.Xaml.cs
- using System.Collections.Generic;
- using Xamarin.Forms;
- using XamarinForms_Frame;
- namespace XamarinForms_Frame {
- public partial class XamarinForms_FramePage: ContentPage {
- List < ListValue > list = new List < ListValue > ();
- public XamarinForms_FramePage() {
- InitializeComponent();
- list.Add(new ListValue() {
- Title = "Xamarin Android"
- });
- list.Add(new ListValue() {
- Title = "Xamarin iOS"
- });
- list.Add(new ListValue() {
- Title = "Xamarin.Forms"
- });
- lstValue.ItemsSource = list;
- }
- }
- }
Now, Create a Frame Inherit class for customise the Frame control.
Go to Solution—>Empty Class—> filename
MyFrame.cs



Deepak YogiPosted Dec 17, 2018, 2:17 AM
Hello Delpin Susai Raj, I implemented custom frame. guide to your post but not work in android.
Former memberPosted Jun 8, 2018, 12:29 AM
Hi Delpin, Thanks for your update. But I want this in Xamarin.Android. I have a custom control with more element. One of the element is Horizontal ScrollView. I have used Elevation and TranslationZ. But there is no changes on that.
Muthukumar cPosted May 28, 2018, 11:37 AM
Hi I am Getting an error