ViewAViewModel.cs 718 B

123456789101112131415161718192021222324252627
  1. using BuildProcess.Core.Mvvm;
  2. using BuildProcess.Services.Interfaces;
  3. using Prism.Regions;
  4. namespace BuildProcess.Modules.ModuleName.ViewModels
  5. {
  6. public class ViewAViewModel : RegionViewModelBase
  7. {
  8. private string _message;
  9. public string Message
  10. {
  11. get { return _message; }
  12. set { SetProperty(ref _message, value); }
  13. }
  14. public ViewAViewModel(IRegionManager regionManager, IMessageService messageService) :
  15. base(regionManager)
  16. {
  17. Message = messageService.GetMessage();
  18. }
  19. public override void OnNavigatedTo(NavigationContext navigationContext)
  20. {
  21. //do something
  22. }
  23. }
  24. }