コード例 #1
0
        public override void OnNavigatedTo(NavigationContext navigationContext)
        {
            var navigationProvider = new PrismNavigationProvider(navigationContext);

            if (!string.IsNullOrWhiteSpace(navigationProvider.GetValue("path")))
            {
                FileNameQualified = navigationProvider.GetValue("path");
            }
        }
コード例 #2
0
        public override void OnNavigatedTo(NavigationContext navigationContext)
        {
            base.OnNavigatedTo(navigationContext);
            var navigationProvider = new PrismNavigationProvider(navigationContext);

            if (string.IsNullOrWhiteSpace(navigationProvider.GetValue("Type")))
            {
                throw new NullReferenceException("Error missing type argument in query");
            }

            var typename = navigationProvider.GetValue("Type");

            RequestType = Type.GetType(typename);
        }