locked
Can i use a metro C#XAML usercontrol in a metro Javascript app? RRS feed

  • Question

  • hello everyone,i am a beginner and who can tell me "Can i use a metro C#XAML usercontrol in a metro Javascript app?" and how,thanks
    Tuesday, April 10, 2012 4:04 AM

Answers

  • Hi,

    I think the answer is No. We cannot use xaml control in Metro style Javascript app.

    You can use existing HTML controls and WinJS controls.

    See http://msdn.microsoft.com/en-us/library/windows/apps/Hh465393.aspx for more information.

    Best regards,


    Min Zhu [MSFT]
    MSDN Community Support | Feedback to us


    Tuesday, April 10, 2012 6:13 AM
    Moderator
  • You can create a component library in C# for your underlying logic and call it from an HTML/JS app.

    You cannot create Xaml UI in that component library. Your Metro style app can use either HTML for its UI or Xaml, but not both (minor exception: if you use Xaml for your UI you can include some HTML in a WebView control).

    --Rob

    Wednesday, April 11, 2012 4:19 AM
    Moderator

All replies