Пример #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;
        }
Пример #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;
        }
Пример #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;
        }
Пример #4
0
		internal NavigatorRouteEntry(string path, Page page, NavigatorPageMode mode)
		{
			ProcessPath(path);
			this.Page = page;
			this.ViewMode = mode;
		}
Пример #5
0
		internal NavigatorRouteEntry(string path, Func<Page> callback, NavigatorPageMode mode)
		{
			ProcessPath(path);
			this.ViewMode = mode;
			this.Callback = callback;
		}
Пример #6
0
		internal NavigatorRouteEntry(string path, Type viewType, NavigatorPageMode mode)
		{
			ProcessPath(path);
			this.ViewMode = mode;
			this.Type = viewType;
		}