The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Newbie Question - Example : Silverlight in an HTML based add-in

Last post 09-02-2008, 1:01 PM by AndyC. 6 replies.
Sort Posts: Previous Next
  •  08-31-2008, 5:41 AM 8302

    Newbie Question - Example : Silverlight in an HTML based add-in

    I read a lots of messages in this forum.

    And also this message :

    AndyC:

    XBAP has been deprecated, so while you can use it now, there's a good chance that a future release will result in your app being broken.

    HTML is still considered current - Media Center acts as a host for MSHTML so you can theoretically use Silverlight in an HTML based add-in.   Best thing is to try and see what happens.

    Cheers,
    Andrew

    But I don't see one example HTML with silverlight 2 beta 2 in MCMLPad.

    So, Can you say if vista ultimate MCE navigator is compatible with silverlight 2 beta 2 ? another version of silverlight ? (with an example maybe ?)

    (sorry for my english)
    Best regards.
    Karima

  •  08-31-2008, 10:29 AM 8303 in reply to 8302

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    With Media Center, sometimes the best thing to do to find out if something works, is to just try it.

    Cheers,
    Andrew

  •  09-01-2008, 9:21 AM 8305 in reply to 8303

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    Try... ;)
    Click OK - Video OK - Script ...  

    I have a little problem. In Silverlight , I don't know translate this code from javascript to C#  :
    var objMCE = window.external.MediaCenter();

    I tried :

    var objMCE = HtmlPage.Window.CreateInstance("window.external.MediaCenter");
    var objMCE = HtmlPage.Window.CreateInstance("external.MediaCenter");
    etc...

    But it's wrong so,  Is it a little problem or a big ? 

    Thanks.

  •  09-02-2008, 1:00 AM 8307 in reply to 8305

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    The best solution for the moment :

    http://silverlight.net/forums/p/23971/85878.aspx#85878

  •  09-02-2008, 9:05 AM 8309 in reply to 8307

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    Is there a specific reason for wanting to develop in Silverlight rather than MCML?

     

  •  09-02-2008, 12:38 PM 8310 in reply to 8309

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    Yes, the graphism of the addin is going to create by another company. If  I use MCML, I will do also the graphism. With Xaml, the graphist can use the Expressions' tools.

    Also, I don't like to learn again another language (C#, java, xaml, php, css, html, c++,xml,rdf,sql,etc...).

    But it's strange Microsoft said the XAML is the future on everything but not in Windows Media Center... Same LiveStation is with Silverlight and it's probably the future of Media Center or an future part of Media Center 4.0. What do you think about LiveStation and Media Center ?

  •  09-02-2008, 1:01 PM 8311 in reply to 8310

    Re: Newbie Question - Example : Silverlight in an HTML based add-in

    Have a look through the forum and the SDK for detailed reasons why XAML isn't used internally for Media Center, but some examples: MCML predates XAML, the rendering engine for MCML is designed in a split fashion between the application and the renderer, which can be remote from the PC (e.g. an extender) which is different from XAML.

    Cheers,
    Andrew

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems