/// <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); }
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); }
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(); }