Am i supposed to use WP tookit for WP8 development? - windows-phone-8

I am new to WP 8 development. I want to add a Toggle switch to my application. However, I am not able to find the control in VS 2012 Toolbox.
A bit of Googling brought me to this WP 8 Toolkit Nuget package. Is the Toggle switch control used in WP 8 OS not available to developers directly? Do i have to use this toolkit only ?
Thanks in advance.

Got solution here : http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735581(v=vs.105).aspx
Yes. We need to use WP Toolkit.

Related

How to test windows phone 8 emulator without Hyper-V?

I have to create windows phone 7 or 8. I installed visual studio 2013. It came with windows phone SDK.
I have problem. I have Windows 8.1 pro OS. But my processor does not support Hyper-V platform. I did enable BIOS settings. Even though i did not get this.
Any alternative way to test or debug app in emulator.
Any idea or suggestion should help me a lot.
Thanks in advance.
make sure you have enable hyper V from control panel also.
The best alternative would be to test your app on an actual device (this does not require Hyper-V). For more information have a look at this discussion.
Not the most convenient way, but simple and it's working:
You need to register account at developer.nokia.com and follow this link http://developer.nokia.com/resources/remote-device-access. You'll find list of devices that you can use for testing your apps. Just choose one of them and reserve it and use it as you want!
This video may help you to start:
http://www.youtube.com/watch?v=Z-GbgPnTSxI&sns=tw

Camera command/accessibility in Visual Studio 2013

What would be the command and where is located in order to use the phone's camera capabilities?
I want to create a camera based application, and as a beginner, I don't know how to put it in the application. I have activated the ID_CAP_ISV_CAMERA from the WMAppMAnifest.xml so the access to the hardware is granted, but I can't find the command or string to integrate in my app.
I am using Visual Studio Ultimate 2013
I think this tutorial should help you create your application sucessfully !
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202956(v=vs.105).aspx
It applies to both Windows Phone 8 and 7.1 as well
Also , you can read about the main Camera API from here
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.devices.photocamera(v=vs.105).aspx
Good Luck !

Why use Service.Model from Silverlight for WindowsPhone?

I understood Silverlight was drop by MS.
I create my first app permitting to read RSS in WindowsPhone and I need to add a reference to System.ServiceModel.Syndication.dll. In the doc http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487167(v=vs.105).aspx, I need to find this lib in Microsoft SDKs/Silverlight/v4.0/Libraries/Client/.Why should I do it? Why I can't add directly a lib from the standard .net4?
Can you help me to understand.
[UPDATE]
When I add the lib from C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\
Visual Studio shows a windows "Adding reference to Windows Phone XNA assembly is safe. However adding reference to a silverlight assembly may lead to unexpexted application behavior. Do you want to continue.
So my assumption is this lib shoudn't be use but I don't find another way.
Maybe by add a ref from .Net 4 or 4.5.
Best regards,
Alexandre
The Windows Phone 7 SDK was built on top of Silverlight. For Windows Phone 8 this was changed so that there isn't a direct history with Silverlight but it was based on WinRT instead. Lots of functionality was made available to Silverlight controls to support backwards compatibility with apps written for 7.
Because WinRT is not compatible with classes written for the full version of the framework you cannot use these in your Windows Phone apps.
The warning you are getting is just a warning. It's telling you that your doing something that isn't an ideal and so you may have issues. Unfortunately there are no other versions of the SyndicationFeed object available to Windows Phone apps so you'll need to use this library if you want the functionality of SyndicationFeed without recreating it yourself. The good news is that there are no issue with using this class in your app. Just be sure to test carefully, on real devices, if you start to use other functionality from that assembly because, as the warning says: "there may be unexpected behaviour".

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

VS 2012 HTML5 JS project in Windows 7

I have a new dilemma. I have been tasked with looking into moving our Silverlight project into an HTML5 project. Nice!
Well, I downloaded the sample solution from the link below and tried to load it into VS 2012. The Services project loaded fine, but the DataBinding project (a JS project I believe) did not load. The reason stated I need Windows 8 or higher. I currently have Windows 7 SP 1 (64 bit).
Is there a setting or configuration I need to modify to allow this type of project to load? I appreciate any and all input on this. Thanks!
http://code.msdn.microsoft.com/windowsapps/Accessing-WCF-in-HTML5-and-0d247ef8
The project is using WinJS which makes calls into Windows 8.
https://stackoverflow.com/a/7437563/2249535
You can always open up the files individually and replace WinJS calls with jQuery calls but would still need to use a different project type to open in Visual Studio