CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Voted
james1301 wrote Nov 22, 2011 at 9:12 AM
aadami wrote Nov 23, 2011 at 8:04 PM
this.regionManager.RequestNavigate( "MainRegion", new Uri("HelloWorldView?createRegionManagerScope=true", UriKind.Relative), (result) => { var myRegionManager = result.ExtractRegionManager(); myRegionManager.RequestNavigate("NestedRegion", new Uri("View1", UriKind.Relative)); });
{
{ return new Tuple<object, IRegionManager>(view, region.RegionManager); } view = this.CreateNewRegionItem(candidateTargetContract); bool createRegionManagerScope = navigationContext.Parameters["createRegionManagerScope"] == "true"; var rm = region.Add(view, null, createRegionManagerScope); return new Tuple<object, IRegionManager>(view, rm); }
// Raise the navigating event just before activing the view. this.RaiseNavigating(navigationContext); this.Region.Activate(tuple.Item1); // Update the navigation journal before notifying others of navigaton IRegionNavigationJournalEntry journalEntry = this.serviceLocator.GetInstance<IRegionNavigationJournalEntry>(); journalEntry.Uri = navigationContext.Uri; this.journal.RecordNavigation(journalEntry); // The view can be informed of navigation InvokeOnNavigationAwareElement(tuple.Item1, (n) => n.OnNavigatedTo(navigationContext)); navigationCallback(new CustomNavigationResult(navigationContext, true, tuple.Item2));
james1301 wrote Nov 28, 2011 at 11:01 AM
aadami wrote Nov 30, 2011 at 8:00 PM
ENikS wrote Mar 30, 2012 at 4:37 PM
?? (ScopedRegionManagerAttribute)view.GetType() .GetCustomAttributes(typeof(ScopedRegionManagerAttribute), false) .FirstOrDefault();
ENikS wrote Mar 30, 2012 at 9:35 PM
Sign in to add a comment or to set email notifications
Keyboard shortcuts are available for this page.