Пример #1
0
 /// <summary>
 /// 询问
 /// </summary>
 /// <param name="hostService"></param>
 /// <param name="message"></param>
 /// <returns></returns>
 public static IDialogResult Question(this IDialogHostService hostService, string message)
 {
     return(hostService.ShowDialog("QuestionView", new DialogParameters()
     {
         { "Value", message }
     }).Result);
 }
Пример #2
0
 public PickerViewModel(IDialogHostService dialogHost, IEventAggregator aggregator)
 {
     this.dialogHost = dialogHost;
     this.aggregator = aggregator;
     ColorList       = new ObservableCollection <string>();
     CopyCommand     = new DelegateCommand <string>(Copy);
     ExecuteCommand  = new DelegateCommand <string>(Execute);
 }
Пример #3
0
        public MainWindowViewModel(IRegionManager regionManager, IDialogHostService dialog)
        {
            this.dialog        = dialog;
            this.regionManager = regionManager;
            HomeCommand        = new DelegateCommand(GoHome);
            MovePrevCommand    = new DelegateCommand(MovePrev);
            MoveNextCommand    = new DelegateCommand(MoveNext);
            NavigationCommand  = new DelegateCommand <ModuleConfig>(NavigationPage);

            _moduleConfigs = CreateModuleConfigs();
        }