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; }