Skip to content

Instantly share code, notes, and snippets.

using System.Collections.Generic;
using Xamarin.Forms;
namespace App1
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
<?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:App1"
xmlns:fab="clr-namespace:FAB.Forms;assembly=FAB.Forms"
x:Class="App1.MainPage">
<ContentPage.Content>
<RelativeLayout>
<ContentView RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"