使用Silverlight Toolkit 5控件的问题 [英] Problrm in using silverlight toolkit 5 controls

查看:84
本文介绍了使用Silverlight Toolkit 5控件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在使用基于Silverlight 5的应用程序.
它的框架是MVVM,由Prism实现.
我也在使用silverlight 5工具包.

在我的一种视图中,我使用了工具箱中的wrapPanel和DateTimePicker.




Hi I am working an application that based on Silverlight 5.
Its framework is MVVM and implemented by Prism.
I am using silverlight 5 toolkit too.

in one of my views I using wrapPanel and DateTimePicker from toolkit.




<navigation:Page x:Class="PIPM2.SupervisionSubSystem.Module.View.TestView"

           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

           mc:Ignorable="d"

           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"

           d:DesignWidth="640" d:DesignHeight="480"

           Title="TestView Page" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:my="clr-namespace:Silverlight.Controls;assembly=Silverlight.Controls" xmlns:my1="clr-namespace:Silverlight.Controls.Primitives;assembly=Silverlight.Controls">
    <Grid>
        <sdk:DatePicker  />
        <toolkit:WrapPanel >
        </toolkit:WrapPanel>
    </Grid>
</navigation:Page>




此示例buid成功,但是在运行时在InitializeComponent()方法中出现了此错误=>




This sample buid successed but at runtime in InitializeComponent() method I got this Error =>

Could not load file or assembly ''System.Windows.Controls.Toolkit, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'' or one of its dependencies. The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest. (Exception from HRESULT: 0x80131053)




如果删除控件之一,wrapPanel或DatePicker,则不会再次发生我的错误.

请帮帮我.
我该如何解决这个问题.

非常感谢.




If I delete one of controls, wrapPanel or DatePicker my Error do not occur again.

please help me.
How can I solve this problem.

thanks a lot.

推荐答案

这是怎么回事:
在引用"文件夹上,搜索System.Windows.Controls.Toolkit,右键单击它,然后转到属性.
将本地副本设置为True

完成此步骤后,请重新构建您的项目.运行它!

希望它会有所帮助.
What about this:
On your References folder, search for System.Windows.Controls.Toolkit, right click on it, then go to properties.
Set Local Copy to True

After this step rebuild your project. Run it!

Hope its helps.


这篇关于使用Silverlight Toolkit 5控件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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