Parse() public static method

public static Parse ( string markup, object viewModel = null ) : ConsoleApp
markup string
viewModel object
return ConsoleApp
 public ConsolePageApp(IEnumerable <string> markupFiles)
 {
     InitCommon();
     MarkupParser.Parse(this, markupFiles);
     PageStack.Navigate("");
 }
Example #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);
        }