AppUriMapper.cs CampusAppWP8::Utility::AppUriMapper CampusAppWP8::Utility //----------------------------------------------------------------------- //<copyrightfile="AppUriMapper.cs"company="BTU/IIT"> //TheMITLicense(MIT).Copyright(c)2013BTU/IIT. //</copyright> //<author>Stubbfel</author> //<date>15.10.2013</date> //<summary>ImplementstheapplicationURImapperclass</summary> //----------------------------------------------------------------------- namespaceCampusAppWP8.Utility { usingSystem; usingSystem.Windows.Navigation; usingCampusAppWP8.Resources; 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; } } }