Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }