A few questions about Metro style applications - windows-runtime

I have a few questions about Metro style applications.
Do they require .NET Framework or any framework?
Which programming languages can be used to create Metro style apps?
Can they be cross platform?

It does not require using .NET - you can build native apps with C++ or C++/CX or use HTML and Javascript
C#, Visual Basic, C++, C++/CX, XAML, Javascript, HTML, CSS
It depends what you understand by cross platform - these apps can run on any Windows 8 platform, but not on Windows Phone, Mac or Linux

Metro applications are either developed using Microsoft .Net (c#) OR C++ OR HTML 5 / Javascript
Api Reference of Metro Aplication
For more detailed information, check this page : http://msdn.microsoft.com/library/windows/apps/
HTML5 - Javascript
These are the languages used by any browser, making them compatible on any system
Microsoft .Net
Can only be run on a Windows computer, but you may want to check Mono for compiling multi-platform applications made in C#
C++
Well C++ is c++... it can pretty much do anything anywhere

Related

WinJS Issues | Windows 8.1 and Windows Phone

I am a C# windows developer. I recently started to work with WinJS. Working with WinJS, I have noticed some challenges and limitations. Can face some new challenges as the community support for WinJS is very less. Below are the few points mentioned regarding this concern
a. WinJS does not support Visual Studio features like Finding References of Classes and Variables which is very useful to code productively.
b. WinJS is not strongly typed as C#. So we will get to know about the errors at runtime only instead of compile time which is difficult to Debug and time taking process.
c. WinJS does not support feature “What you see is what you get”. Visual Studio designer is not available for WinJS. We can see the application design only after we run the application which is again time taking thing.
There are very less chances of availability of “Ready to Work on WinJS” resources. Because most of the developers in Windows community work on C#, XAML languages.
d. Direct compatibility of third party libraries for WinJS might not be available.
Have anybody experience in WinJS and faced similar issues? Or Are there any solutions exists for this? What is the scope of improvement in Windows 10 version for WinJS??
For an HTML/CSS/JS designer, that's what Blend for Visual Studio is for. Load the project into Blend and you'll get a designer that also works when you're running the app. Documentation for this is on https://msdn.microsoft.com/en-us/library/jj129478.aspx, and there's a great video from //build 2013 that shows the flow, http://channel9.msdn.com/Events/Build/2013/2-311. I also cover using Blend to some extent in my free ebook, Programming Windows Store Apps with HTML, CSS, and JavaScript, 2nd Edition.
https://dev.windows.com/en-us/develop/winjs
see this link it give the solution your problem which is given below
a. WinJS does not support Visual Studio features like Finding References of Classes and Variables which is very useful to code productively.
b. WinJS is not strongly typed as C#. So we will get to know about the errors at runtime only instead of compile time which is difficult to Debug and time taking process.
c. WinJS does not support feature “What you see is what you get”. Visual Studio designer is not available for WinJS. We can see the application design only after we run the application which is again time taking thing.

Windows Phone 8 and Neural Network

I am wondering to using Neural Network frameworks on Windows Phone 8. I am searching on google but I can not found illustrative information. Is it possible ? Can using like a Aforge or another frameworks.
Thanks in advance. (sorry my language)
Both the AForge.NET Framework and its "extension" Accord.NET Framework have been adapted to Portable Class Libraries. All functionality related to neural networks, machine learning etc. that are contained in the original frameworks have been ported to their PCL analogues.
The PCL libraries target the following platforms:
Windows 8 and higher (formerly known as Metro or Windows Store apps)
Windows Phone (Silverlight) 8 and higher
.NET Framework 4.5 and higher
(When used in .NET, the libraries enable the ability to create WPF applications independent of System.Drawing and System.Windows.Forms assemblies, but that's another story :-)
The portable frameworks are available on Github:
Portable AForge.NET Framework
Portable Accord.NET Framework

Is it possible to call a library written by C language on Windows Phone 8?

I have a library written by C language, which contains some complicated mathematical algorithm. I'm not going to porting it to C# language, can I use it in my WP8 project? and How?
You can use C library in C++ libraries, specifically, inside C++ Windows Phone Runtime Component. You can then use that proxy/wrapper library straight from C#.
C# cannot access native methods without such proxy. You will have to think about data types translation and what you want to do with it exactly.
Native code on Windows Phone 8

Is it possible to develop Windows Phone 8 app using just HTML5, CSS3, and JavaScript?

I was introduced to programming by the web (HTML, CSS, JS, and some PHP) and never tapped on the desktop development for Windows so when I tried to read through the Windows Phone 8 developer documentations, I was totally lost at sea.
I once read a line or two on Microsoft website that says you can build WP8 apps using just HTML5, CSS3 and JavaScript but could never find it any more. So my question is if it's possible?
I tried to find something to get started but it seems to me it all requires C#, C/C++, etc.? I thought they said the web is native in WP8? So in this sense, I should be able to develop apps using just HTML5, CSS3, and JavaScript? Am I right?
Yes, of course. You can use PhoneGap to get your job done!
Yes, Visual Studio 2012 provides a template to build HTML5 apps. This template is available with WP8 SDK.
Alternatively you can use Phonegap, Titanium, Sencha.
https://github.com/matthiasxc/WP8-HTML-Tutorials
You can use Phonegap to do that. Phonegap is a wrapper built around html5 technologies.
I've been looking into the same issue, and found this wonderful post:
http://ax2012aifintegration.blogspot.com/2013/11/mvvm-windows-phone-8-app-using.html
Here, they make a normal WP8 app in Visual Studio, and adapt it to be written in HTML, CSS and JavaScript, using Model-View-ViewModel pattern.
I believe the upcoming Visual Studio 2013 (which is available as a RC version right now) will have the templates installed, but for now, as others have pointed out, PhoneGap is the best option. I remember having created a JS project in VS 2012, but now that I have a new computer I can't find the templates anywhere.
Here is a nice tutorial from MSDN on how to create an HTML5/JS project in Visual Studio using PhoneGap:
http://blogs.msdn.com/b/davrous/archive/2011/12/23/tutorial-how-to-create-html5-applications-on-windows-phone-thanks-to-phonegap.aspx
Yes it is possible to create windows apps using html 5 and javascript
U can also develop windows phone apps without having the knowledge of coding...
To know more about it, check out:
http://www.techstorms.in/2013/10/how-to-develop-windows-phone-apps-for-free.html

Is LINQ-to-SQL available in metro style apps on Windows 8?

I'm porting a Windows Phone 7 app to work for Windows 8 (and take advantage of the new form factors available).
There appears to be a handy namespace map for a lot of the namespaces, and there are some that are explicitly called out as not avaialbe, but there appears to be no mention of LINQ-to-SQL - is this an omission in the documentation, or is it not available in metro style applications?
LINQ-to-SQL and LINQ-to-Entities are not available in Metro-style apps. Metro-style apps are meant to be lightweight apps which can retrieve data from web services (generally running in the cloud).
Thus, ADO.NET and the entire System.Data namespace is not supported.
Mention was made in the Windows Phone Summit on Wednesday that SQLLite would be available on WP8 and Win8, but no details as to the programming API's were shared yet. Currently the Metro subset of .Net for WinRT applications does not include a database API set. There are some independant efforts to port some of the no-sql based implementations, including RhynoDB and Sterling, so you may want to keep your ears open to further announcements.