Embeddable Cross-Platform Silverlight

by Jon Davis 15. May 2008 00:02

I've been wanting to start discovering cross-platform development with Mono, MonoDevelop, Gecko#, C++, XPCOM, XUL, XULRunner, WebKit, et al. I have a couple vaporware apps in mind and I have just purchased a Mac Mini and an iPhone mainly for this purpose. And meanwhile since Silverlight happens to be cross-platform as well, I was curious about its licensing. Theoretically, one can accomplish an Adobe AIR-like cross-platform application implementation using Silverlight and XUL or WebKit. Problem is, I had heard that Silverlight was explicitly written to disallow it from being used on anything but a standard HTML web browser (Safari, Firefox, Internet Explorer).

After spending an hour or so poking at the n00b tutorials on XUL and XPCOM, I went to the Silverlight site and spent several minutes looking everywhere for the darn EULA. (Sadly, after finding it, once I hopped on this blog editor I lost it and it took another 15 minutes to find it again.)

http://www.microsoft.com/silverlight/resources/LicenseWin.aspx and http://msdn.microsoft.com/en-us/silverlight/cc307279.aspx

I didn't see any such limitation there, nothing about "thou shalt only use Silverlight in a 'standard web browser', namely Internet Explorer, Firefox, or Safari".  There are some limitations, of course, such as perhaps redistribution, which theoretically if the app is a XUL app can be deal with using HTML+JS+XUL+XPI, getting Silverlight into thinking it's downloading and installing itself through and onto Firefox. (All theory, of course.)

On a side topic, if anyone out there is reading this, can someone tell me why there are almost no open discussions correlating XUL and XAML/WPF? They seem to attempt to do the same basic function--create apps using XML and components--albeit WPF is far more powerful and versatile in itself as a tool in its niche, whereas XUL is Javascript/HTML friendly and is cross-platform.

UPDATE: After discussing with a buddy who's done cross-platform .NET programming with Mono, apparently Glade + GTK# has an XML markup language that also meets the same objective.

On second thought, maybe I just wasn't searching hard enough. I see a lot of hits here: http://www.google.com/search?q=xul+vs+xaml

Currently rated 2.0 by 1 people

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

Tags: , , , , ,

Pet Projects | Computers and Internet | Software Development | Linux | Cool Tools | Web Development

Silverlight: DOCX-to-XAML using TextGlow.net

by Jon Davis 10. March 2008 02:07

At http://www.textglow.net/ they've proven that Silverlight 2 and its CLR is flexible enough to be able to take a .docx file (that's a modern Microsoft Word document) and browse it in Silverlight. I am assuming it's converting to XAML under the covers, and even if not I'm sure that a Canvas object and its contents are serializable to XAML (yes?).

What I want to know is, if a Word document can be browsed in Silverlight, why doesn't Microsoft take this another nineteen miles and convert XHTML+CSS to XAML and make Internet Explorer 9 or IE 10 a completely WPF based renderer?

I know that's not nearly as simple as it sounds; there is a vast amount of complexity in Trident.

Be the first to rate this post

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

Tags: , , ,

Computers and Internet | Cool Tools | Web Development

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

<<  May 2018  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar