Answered by:
Can i use a metro C#XAML usercontrol in a metro Javascript app?

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,thanksTuesday, 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
- Edited by Min ZhuMember Tuesday, April 10, 2012 6:14 AM
- Marked as answer by illegalusername Tuesday, April 10, 2012 7:09 AM
Tuesday, April 10, 2012 6:13 AMModerator -
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
- Marked as answer by illegalusername Friday, April 13, 2012 7:47 AM
Wednesday, April 11, 2012 4:19 AMModerator
All replies
-
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
- Edited by Min ZhuMember Tuesday, April 10, 2012 6:14 AM
- Marked as answer by illegalusername Tuesday, April 10, 2012 7:09 AM
Tuesday, April 10, 2012 6:13 AMModerator -
Thanks for your answer.i found this http://msdn.microsoft.com/en-us/library/windows/apps/hh779077(v=vs.110).aspx but can not use xamlUI.
Tuesday, April 10, 2012 7:04 AM -
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
- Marked as answer by illegalusername Friday, April 13, 2012 7:47 AM
Wednesday, April 11, 2012 4:19 AMModerator