Ejemplo n.º 1
0
 public ConsolePageApp(IEnumerable <string> markupFiles)
 {
     InitCommon();
     MarkupParser.Parse(this, markupFiles);
     PageStack.Navigate("");
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a ConsoleApp from markup and a view model
        /// </summary>
        /// <param name="markup">The xml markup that defines the app's view</param>
        /// <param name="viewModel">The view model object that defines the code behind the view</param>
        /// <returns>An app where the view has been bound to the view model</returns>
        public static ConsoleApp FromMvVm(string markup, object viewModel)
        {
            var ret = MarkupParser.Parse(markup, viewModel);

            return(ret);
        }