示例#1
0
 public Region()
 {
     if (DesignerProperties.GetIsInDesignMode(this))
     {
         return;
     }
     _navigationService = MVVMCNavigationService.GetInstance();
     this.Loaded       += OnRegionLoaded;
     this.Unloaded     += OnRegionUnloaded;
 }
示例#2
0
 public static MVVMCNavigationService GetInstance()
 {
     if (_instance != null)
     {
         return(_instance);
     }
     lock (_lockInstance)
     {
         if (_instance != null)
         {
             return(_instance);
         }
         _instance = new MVVMCNavigationService();
         return(_instance);
     }
 }
 public static INavigationService GetNavigationServiceInstance()
 {
     return(MVVMCNavigationService.GetInstance());
 }
示例#4
0
 internal void SetNavigationService(MVVMCNavigationService navigationService)
 {
     _navigationService = navigationService;
 }
示例#5
0
 public Region()
 {
     _navigationService = MVVMCNavigationService.GetInstance();
     this.Loaded       += OnRegionLoaded;
     this.Unloaded     += OnRegionUnloaded;
 }