PowerArgs.Cli.ConsoleApp.FromMvVm C# (CSharp) Method

FromMvVm() public static method

Creates a ConsoleApp from markup and a view model
public static FromMvVm ( string markup, object viewModel ) : ConsoleApp
markup string The xml markup that defines the app's view
viewModel object The view model object that defines the code behind the view
return ConsoleApp
        public static ConsoleApp FromMvVm(string markup, object viewModel)
        {
            var ret = MarkupParser.Parse(markup, viewModel);
            return ret;
        }