This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using Xamarin.Forms.Xaml; | |
var 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"" | |
x:Class=""XamlSamples.HelloXamlPage"" | |
Title=""Hello XAML Page"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
// Additional guidance: see http://vincenth.net/blog/archive/2014/11/27/how-to-share-xamarin-forms-data-binding-code-across-xamarin-sketches-and-apps-without-using-strings.aspx | |
// NOTE: Once support for creating classes is added to Xamarin Sketches, | |
// there is no need for this Tuple + enum + BindName + regular expression workaround; | |
// you can then simply create design data classes in the Sketch and bind to that using | |
// the same syntax in both projects and sketches, e.g.: | |
// SetBinding(..., (Person boundPerson) => boundPerson.Name) | |
// BindName helper function for use with binding to design data in Sketches. |