Silverlight

XAML (Extensible Application Markup Language)

HTML Code used for the embeded Silverlight application

<body>
   <form id="form1" runat="server" style="height:100%">
     <div id="silverlightControlHost">
       <object data="data:application/x-silverlight-2," 
               type="application/x-silverlight-2" 
               width="100%" height="100%">
          <param name="source" value="HelloWorld.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="4.0.50401.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" 
                   style="text-decoration:none">
          <img src="http://go.microsoft.com/fwlink/?LinkId=161376" 
                   alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
       </object>
       <iframe id="_sl_historyFrame"
               style="visibility:hidden;height:0px;width:0px;border:0px">
       </iframe>
     </div>
   </form>
</body>

XAML

General

Links

Bing maps - my component

            parser = new CKmlParser();
            ////////////////////////////////////////
            //Pr.1 - nacitani ze souboru v lokalnim adresari
            ////////////////////////////////////////
            //parser.load("all.kml");
            //sourceMap.Children.Add(parser.getLayerAllPoints()); //pridani vrstvy s body do mapy
            //OutputTextBlock.Text += parser.output;              //pro kontrolni a chybove vypisy
            
            /////////////////////////
            //Pr.2 - nacitani z url adresy
            /////////////////////////
            //string uri = "http://localhost:50201/all2.kml";
            string uri = "http://195.113.224.196:4462/en/content/31/all.kml";
            WebClient wc = new WebClient();
            wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(downloadKml);
            wc.DownloadStringAsync(new Uri(uri, UriKind.RelativeOrAbsolute));            






© 2010 Marmil (Martin Milika) optimalizace PageRank.cz