AppUriMapper.cs CampusAppWP8::Utility::AppUriMapper CampusAppWP8::Utility //----------------------------------------------------------------------- //<copyrightfile="AppUriMapper.cs"company="BTU/IIT"> //Companycopyrighttag. //</copyright> //<author>stubbfel</author> //<sience>26.09.2013</sience> //---------------------------------------------------------------------- namespaceCampusAppWP8.Utility { usingSystem; usingSystem.Windows.Navigation; usingCampusAppWP8.Resources; usingSystem.Windows.Controls; publicclassAppUriMapper:UriMapperBase { publicoverrideUriMapUri(Uriuri) { stringtempUri=uri.ToString(); //LookforaURIfromthelenspicker. if(tempUri.Contains("ViewfinderLaunch")) { //Launchasalens,launchviewfinderscreen. tempUri=Constants.PathQR_QRPage; Uriurl=newUri(tempUriasstring,UriKind.Relative); returnnewUri(tempUri,UriKind.Relative); } //Otherwiseperformnormallaunch. returnuri; } } }