partial void EngineersListReport_Created() { //Listing 14-7. Showing a Web Page on a LightSwitch List and Details Screen IdToReportUrlConverter converter = new IdToReportUrlConverter(); converter.rootURI = this.DataWorkspace.ApplicationData.AppOptions.FirstOrDefault().ReportWebServer.ToString(); var control = this.FindControl("id"); control.SetBinding(ApressControlsCS.WebBrowser.URIProperty, "Value", converter, BindingMode.OneWay); }
partial void EngineersManagerGrid_Created() { // Listing 16-7. Displaying a web page with the web browser control var control0 = this.FindControl("ReportProperty"); control0.ControlAvailable += (sender, e) => ((WebBrowser)e.Control).Navigate( new Uri(@"http://localhost:35178/Reports/ReportPage.aspx")); //Listing 16-8. Showing a web page on a LightSwitch List and Details screen IdToReportUrlConverter converter = new IdToReportUrlConverter(); var control = this.FindControl("Engineers_SelectedItem_Id"); control.SetBinding(ApressControlsCS.WebBrowser.URIProperty, "Value", converter, BindingMode.OneWay); }