Created
February 13, 2018 18:07
-
-
Save jfversluis/32f1c3048cc35d6960a2c80540e822e3 to your computer and use it in GitHub Desktop.
Loading a whole ContentPage from XAML
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
var page = new ContentPage(); | |
page.LoadFromXaml($"<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<ContentPage xmlns=\"http://xamarin.com/schemas/2014/forms\"\r\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\r\nx:Class=\"Examples.Views.TestView\">\r\n{labelXaml}\r\n</ContentPage>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment