I've recently updated a Windows Phone 8 app to Windows Phone 8.1. I'm trying to add a <DatePicker />
control (newly available in Windows Phone 8.1) to the XAML but it's not available in my XAML.
I get the errors:
The name "DatePicker" does not exist in the namespace "http://schemas.microsoft.com/client/2007"
and
The type 'DatePicker' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
and
The tag 'DatePicker' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'
However, if I create a new Windows Phone app the DatePicker
is available there.
Also, I can create and add the DatePicker via the codebehind, just not in XAML.
I have checked and can confirm the project is targeting Windows Phone 8.1, and as far as I can see I am referencing the correct assembly:
What do I need to do to make the DatePicker available in XAML?