Inline XAML

by Jon Davis 12. November 2007 03:53

I was whining earlier in some technology mailing lists that inline XAML isn’t supported by Silverlight. No one corrected me on that, but it looks like it is supported, rather cleanly and elegantly, except for a stupid Firefox bug. Thx to Jon Galloway for pointing all this out.

http://msdn2.microsoft.com/en-us/library/bb687962.aspx
http://weblogs.asp.net/jgalloway/archive/2007/10/31/silverlight-doesn-t-require-any-javascript.aspx

<html>
 
<head>
 
</head>
  <body>
    <script type="text/xaml" id="xamlContent">
        <?xml version="1.0"?>
        <Canvas ... >
                    ...
        </Canvas>
   
</script>

   
<div id="controlHost">
       
<object
           
id="silverlightControl"

            type
="application/x-silverlight"

            height
="400"

            width
="400">

         
<param name="Source" value="#xamlContent" />
       
</object>
   
</div>
</body>
</html>

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Web Development


 

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

Jon Davis (aka "stimpy77") has been a programmer, developer, and consultant for web and Windows software solutions professionally since 1997, with experience ranging from OS and hardware support to DHTML programming to IIS/ASP web apps to Java network programming to Visual Basic applications to C# desktop apps.
 
Software in all forms is also his sole hobby, whether playing PC games or tinkering with programming them. "I was playing Defender on the Commodore 64," he reminisces, "when I decided at the age of 12 or so that I want to be a computer programmer when I grow up."

Jon was previously employed as a senior .NET developer at a very well-known Internet services company whom you're more likely than not to have directly done business with. However, this blog and all of jondavis.net have no affiliation with, and are not representative of, his former employer in any way.

Contact Me 


Tag cloud

Calendar

<<  August 2020  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

RecentPosts