internal void Map(string path, Func <Page> callback, NavigatorPageMode mode) { Debug.Assert(path != null); Debug.Assert(callback != null); var entry = new NavigatorRouteEntry(path, callback, mode); this.routes[entry.Path] = entry; }
internal void Map(string path, Page page, NavigatorPageMode mode) { Debug.Assert(path != null); Debug.Assert(page != null); var entry = new NavigatorRouteEntry(path, page, mode); this.routes[entry.Path] = entry; }
internal void Map(string path, Type pageType, NavigatorPageMode mode) { Debug.Assert(path != null); Debug.Assert(pageType != null); Debug.Assert(typeof(Page).IsAssignableFrom(pageType)); var entry = new NavigatorRouteEntry(path, pageType, mode); this.routes[entry.Path] = entry; }
internal NavigatorRouteEntry(string path, Page page, NavigatorPageMode mode) { ProcessPath(path); this.Page = page; this.ViewMode = mode; }
internal NavigatorRouteEntry(string path, Func<Page> callback, NavigatorPageMode mode) { ProcessPath(path); this.ViewMode = mode; this.Callback = callback; }
internal NavigatorRouteEntry(string path, Type viewType, NavigatorPageMode mode) { ProcessPath(path); this.ViewMode = mode; this.Type = viewType; }