예제 #1
0
        private void OnRegionLoaded(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(ControllerID))
            {
                throw new NullReferenceException($"A loaded Region doesn't have 'ControllerID' set to anything");
            }

            _navigationService.CreateAndAddController(ControllerID);
            _navigationService.AddRegion(this);
            _navigationService.GetController(ControllerID).NavigateToInitial();
        }
예제 #2
0
 private void OnRegionLoaded(object sender, RoutedEventArgs e)
 {
     _navigationService.CreateAndAddController(ControllerID);
     _navigationService.AddRegion(this);
     _navigationService.GetController(ControllerID).NavigateToInitial();
 }