初始化
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using linesider_screen_bankend.Core.Mvvm;
|
||||
using linesider_screen_bankend.Services.Interfaces;
|
||||
using Prism.Regions;
|
||||
|
||||
namespace linesider_screen_bankend.Modules.ModuleName.ViewModels
|
||||
{
|
||||
public class ViewAViewModel : RegionViewModelBase
|
||||
{
|
||||
private string _message;
|
||||
public string Message
|
||||
{
|
||||
get { return _message; }
|
||||
set { SetProperty(ref _message, value); }
|
||||
}
|
||||
|
||||
public ViewAViewModel(IRegionManager regionManager, IMessageService messageService) :
|
||||
base(regionManager)
|
||||
{
|
||||
Message = messageService.GetMessage();
|
||||
}
|
||||
|
||||
public override void OnNavigatedTo(NavigationContext navigationContext)
|
||||
{
|
||||
//do something
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user