在Cordova中为WP8添加日期选择器

时间:2015-03-26 15:20:05

标签: windows-phone-8.1 cordova-plugins visual-studio-cordova

我试图在Cordova项目中调用原生WP8日期选择器。 我需要一个插件吗? 该插件应仅适用于WP8,对于IOS和Android我想使用原生输入。

我试过这个' https://github.com/hypermurea/phonegap-wp8-datepicker-plugin'但它在编译时失败,出现以下错误:

(Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(83,17): error CS0246: The type or namespace name 'NavigationInTransition' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj]
1>Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(84,17): error CS0246: The type or namespace name 'NavigationOutTransition' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj]
1>Plugins\com.hypermurea.phonegap.wp8-datetimepicker-plugin\DateTimePickerTask.cs(85,17): error CS0246: The type or namespace name 'IDateTimePickerPage' could not be found (are you missing a using directive or an assembly reference?) [C:\Projectos\VS\NoesisWrapper\NoesisWrapper\bld\Debug\platforms\wp8\NoesisWrapper.csproj])

我正在使用VS2015 v14.0.22609.0,并通过NuGet将WPToolkit添加到项目中。

1 个答案:

答案 0 :(得分:0)

您需要安装Windows Phone工具包。请按照以下链接安装:  https://www.nuget.org/packages/WPtoolkit