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(); }
private void OnRegionLoaded(object sender, RoutedEventArgs e) { _navigationService.CreateAndAddController(ControllerID); _navigationService.AddRegion(this); _navigationService.GetController(ControllerID).NavigateToInitial(); }