Windows手机长列表选择器和日期选择器。 “Phone.Controls.LongListSelector存在于两个dll”中。 [英] Windows phone long list Selector and Date Picker. "Phone.Controls.LongListSelector exists in Both dll's "

查看:67
本文介绍了Windows手机长列表选择器和日期选择器。 “Phone.Controls.LongListSelector存在于两个dll”中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个Windows Phone 8应用程序,我使用 LongListSelector和DatePicker。

LongListSelector来自windows.controls

DatePicker来自 Windows.phone.Controls.toolkit (日期选择器在Windows.Controls中不可用)。



**只要我拖动并且在我的设计中删除 DatePicker 它将Windows.phone.Controls.toolkit.dll添加到引用和XAML文件中。

现在在构建时该文件的说法是错误1'C:\Program Files(x86)\ Reference组件\ Microsoft &\\ Framework \ WindowsPhone \ v8'中存在'Microsoft.Phone.Controls.LongListSelector'类型。 0\Microsoft.Phone.dll'和'C:\Program Files(x86)\ Mysoftoft SDKs \ Windows Phone \v7.1 \ Toolkit \Aug11 \ Bin \ microsoft.phone.controls。 toolkit.dll'



** 我不需要 Windows .phone.toolkit 使用我的LongListSelector(因为LLS来自Windows.phone)



i想要使用windows.controls中的控件..我怎样才能实现这一点。

I am making a windows phone 8 application, where i use LongListSelector and DatePicker.
the LongListSelector is from windows.controls
the DatePicker is from Windows.phone.Controls.toolkit (Date Picker is not-available in Windows.Controls).

** As soon as i Drag and drop DatePicker in my design it is adding Windows.phone.Controls.toolkit.dll to references and in XAML file.
and now while building the file its saying Error 1 The type 'Microsoft.Phone.Controls.LongListSelector' exists in both 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\Microsoft.Phone.dll' and 'C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Toolkit\Aug11\Bin\microsoft.phone.controls.toolkit.dll'
"
** I don't need Windows.phone.toolkit to work with my LongListSelector (as it LLS is from Windows.phone)

i want to use the controls in windows.controls.. how can i achieve this.

推荐答案

工作方法

删除引用中现有的windows.phone.toolkit ..

右键单击引用..选择Manage NuGet Packages

上网并搜索windows phone toolkit ..并安装它,

然后添加

Working method
Delete the existing windows.phone.toolkit in references..
Right click on references.. Select Manage NuGet Packages
Go online and search for windows phone toolkit.. and install it,
then add
xmlns:toolKit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

在您的xaml文件中。



然后输入

in your xaml file on the top.

then type

<toolKit:you will get it 







不要按照这种方法

< b> ** 不要在工具箱中搜索你的控件并放入UI ..它会导致同样的错误,它会在引用下生成一个.dll




Dont Follow this method
** Don't search for your control in toolbox and drop in UI .. it will cause same error , it will generate a .dll under references


这篇关于Windows手机长列表选择器和日期选择器。 “Phone.Controls.LongListSelector存在于两个dll”中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆