示例#1
0
 public override void Load()
 {
     if (!modalPushed)
     {
         modalPushed = true;
         modalService.Push(typeof(WelcomeViewModel));
     }
 }
        /// <summary>
        /// Build command.
        /// </summary>
        /// <returns></returns>
        public ICommand Build()
        {
            if (viewModelType == null)
            {
                throw new ArgumentNullException(nameof(viewModelType));
            }

            var executeAction = new Action <object>(async _ => await modalService.Push(viewModelType));

            if (commandManager != null)
            {
                return(commandManager.Add(executeAction));
            }

            return(new Command(executeAction));
        }