ShaderEffect subclasses from Effect, not DependencyObject
[moon.git] / test / 2.0 / enableHtmlAccess / enableHtmlAccess-false.html
blob4461fceabd602cb746e927c911fdaf10bd298248
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" >
4 <head>
5 <title>enableHtmlAccess == false</title>
6 <meta></meta>
8 <style type="text/css">
9 html, body {
10 height: 100%;
11 overflow: auto;
13 body {
14 padding: 0;
15 margin: 0;
17 #silverlightControlHost {
18 height: 100%;
20 </style>
22 <script type="text/javascript">
23 function onSilverlightError(sender, args) {
25 var appSource = "";
26 if (sender != null && sender != 0) {
27 appSource = sender.getHost ().Source;
29 var errorType = args.ErrorType;
30 var iErrorCode = args.ErrorCode;
32 var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n" ;
34 errMsg += "Code: "+ iErrorCode + " \n";
35 errMsg += "Category: " + errorType + " \n";
36 errMsg += "Message: " + args.ErrorMessage + " \n";
38 if (errorType == "ParserError") {
39 errMsg += "File: " + args.xamlFile + " \n";
40 errMsg += "Line: " + args.lineNumber + " \n";
41 errMsg += "Position: " + args.charPosition + " \n";
42 } else if (errorType == "RuntimeError") {
43 if (args.lineNumber != 0) {
44 errMsg += "Line: " + args.lineNumber + " \n";
45 errMsg += "Position: " + args.charPosition + " \n";
47 errMsg += "MethodName: " + args.methodName + " \n";
50 throw new Error (errMsg);
52 </script>
53 </head>
55 <body>
56 <!-- Runtime errors from Silverlight will be displayed here.
57 This will contain debugging information and should be removed or hidden when debugging is completed -->
58 <div id='errorLocation' style="font-size: small;color: Gray;"></div>
60 <div id="silverlightControlHost">
61 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1600" height="1200">
62 <param name="source" value="enableHtmlAccess.xap"/>
63 <param name="onerror" value="onSilverlightError" />
64 <param name="background" value="white" />
65 <param name="enablehtmlaccess" value="false"/>
66 <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
67 <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
68 </a>
69 </object>
70 <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
71 </div>
72 </body>
73 </html>