Skip to content

Instantly share code, notes, and snippets.

@mogwai
Last active October 9, 2017 10:36
Show Gist options
  • Save mogwai/301893f0358f57b5bde8abf12eef2477 to your computer and use it in GitHub Desktop.
Save mogwai/301893f0358f57b5bde8abf12eef2477 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Hum.Views.EventListItemView">
<Label Text="{Binding Title}" />
</ViewCell>
using Xamarin.Forms.Internals;
using Xamarin.Forms;
public class MyContentView : ContentView {
[Preserve]
public string Title {get;set;}
public MyContentView(){
BindingContext = this;
Title = "Hello World!";
InitializeComponent();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment